Kaydet (Commit) 165c9398 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:cstylecast

Change-Id: I21fd75b3c891d98f6ad1e4c8af985c2cd21c7db4
üst 58cb1423
...@@ -102,7 +102,7 @@ void SerfGetReqProcImpl::processChunkOfResponseData( const char* data, ...@@ -102,7 +102,7 @@ void SerfGetReqProcImpl::processChunkOfResponseData( const char* data,
} }
else if ( xOutputStream.is() ) else if ( xOutputStream.is() )
{ {
const uno::Sequence< sal_Int8 > aDataSeq( (sal_Int8 *)data, len ); const uno::Sequence< sal_Int8 > aDataSeq( reinterpret_cast<const sal_Int8 *>(data), len );
xOutputStream->writeBytes( aDataSeq ); xOutputStream->writeBytes( aDataSeq );
} }
} }
......
...@@ -111,7 +111,7 @@ void SerfPostReqProcImpl::processChunkOfResponseData( const char* data, ...@@ -111,7 +111,7 @@ void SerfPostReqProcImpl::processChunkOfResponseData( const char* data,
} }
else if ( xOutputStream.is() ) else if ( xOutputStream.is() )
{ {
const uno::Sequence< sal_Int8 > aDataSeq( (sal_Int8 *)data, len ); const uno::Sequence< sal_Int8 > aDataSeq( reinterpret_cast<const sal_Int8 *>(data), len );
xOutputStream->writeBytes( aDataSeq ); xOutputStream->writeBytes( aDataSeq );
} }
} }
......
...@@ -462,7 +462,7 @@ apr_status_t SerfSession::verifySerfCertificateChain ( ...@@ -462,7 +462,7 @@ apr_status_t SerfSession::verifySerfCertificateChain (
{ {
uno::Reference< security::XCertificateExtension >element = extensions[i]; uno::Reference< security::XCertificateExtension >element = extensions[i];
const rtl::OString aId ( (const sal_Char *)element->getExtensionId().getArray(), element->getExtensionId().getLength()); const rtl::OString aId ( reinterpret_cast<const sal_Char *>(const_cast<const signed char *>(element->getExtensionId().getArray())), element->getExtensionId().getLength());
if ( aId.equals( OID_SUBJECT_ALTERNATIVE_NAME ) ) if ( aId.equals( OID_SUBJECT_ALTERNATIVE_NAME ) )
{ {
uno::Reference< security::XSanExtension > sanExtension ( element, uno::UNO_QUERY ); uno::Reference< security::XSanExtension > sanExtension ( element, uno::UNO_QUERY );
...@@ -1423,9 +1423,7 @@ SerfSession::getDataFromInputStream( ...@@ -1423,9 +1423,7 @@ SerfSession::getDataFromInputStream(
rData.realloc( nPos + nRead ); rData.realloc( nPos + nRead );
aBuffer.realloc( nRead ); aBuffer.realloc( nRead );
memcpy( (void*)( rData.getArray() + nPos ), memcpy( rData.getArray() + nPos, aBuffer.getConstArray(), nRead );
(const void*)aBuffer.getConstArray(),
nRead );
nPos += nRead; nPos += nRead;
aBuffer.realloc( 0 ); aBuffer.realloc( 0 );
......
...@@ -31,8 +31,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucpdav1_component_getFactory( ...@@ -31,8 +31,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucpdav1_component_getFactory(
void * pRet = 0; void * pRet = 0;
uno::Reference< lang::XMultiServiceFactory > xSMgr( uno::Reference< lang::XMultiServiceFactory > xSMgr(
reinterpret_cast< lang::XMultiServiceFactory * >( static_cast< lang::XMultiServiceFactory * >( pServiceManager ) );
pServiceManager ) );
uno::Reference< lang::XSingleServiceFactory > xFactory; uno::Reference< lang::XSingleServiceFactory > xFactory;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment