diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-27 09:21:05 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-07-27 09:24:08 +0200 |
commit | 165c939818b18d68216864600097b99e5d8c2266 (patch) | |
tree | 5e6e306d3151f70a263b0731ade486d5ca4cd275 /ucb | |
parent | 58cb14239267d6ab1b0be20bc8aa8f6895e15cb7 (diff) |
loplugin:cstylecast
Change-Id: I21fd75b3c891d98f6ad1e4c8af985c2cd21c7db4
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav/SerfGetReqProcImpl.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/SerfPostReqProcImpl.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/SerfSession.cxx | 6 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/webdavservices.cxx | 3 |
4 files changed, 5 insertions, 8 deletions
diff --git a/ucb/source/ucp/webdav/SerfGetReqProcImpl.cxx b/ucb/source/ucp/webdav/SerfGetReqProcImpl.cxx index 30b16283c32e..8c9ee4a91ebc 100644 --- a/ucb/source/ucp/webdav/SerfGetReqProcImpl.cxx +++ b/ucb/source/ucp/webdav/SerfGetReqProcImpl.cxx @@ -102,7 +102,7 @@ void SerfGetReqProcImpl::processChunkOfResponseData( const char* data, } 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 ); } } diff --git a/ucb/source/ucp/webdav/SerfPostReqProcImpl.cxx b/ucb/source/ucp/webdav/SerfPostReqProcImpl.cxx index 1938fcb8ca0f..89d4e2fe5bf7 100644 --- a/ucb/source/ucp/webdav/SerfPostReqProcImpl.cxx +++ b/ucb/source/ucp/webdav/SerfPostReqProcImpl.cxx @@ -111,7 +111,7 @@ void SerfPostReqProcImpl::processChunkOfResponseData( const char* data, } 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 ); } } diff --git a/ucb/source/ucp/webdav/SerfSession.cxx b/ucb/source/ucp/webdav/SerfSession.cxx index c3d890f3a467..9cb54ad133ac 100644 --- a/ucb/source/ucp/webdav/SerfSession.cxx +++ b/ucb/source/ucp/webdav/SerfSession.cxx @@ -462,7 +462,7 @@ apr_status_t SerfSession::verifySerfCertificateChain ( { 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 ) ) { uno::Reference< security::XSanExtension > sanExtension ( element, uno::UNO_QUERY ); @@ -1423,9 +1423,7 @@ SerfSession::getDataFromInputStream( rData.realloc( nPos + nRead ); aBuffer.realloc( nRead ); - memcpy( (void*)( rData.getArray() + nPos ), - (const void*)aBuffer.getConstArray(), - nRead ); + memcpy( rData.getArray() + nPos, aBuffer.getConstArray(), nRead ); nPos += nRead; aBuffer.realloc( 0 ); diff --git a/ucb/source/ucp/webdav/webdavservices.cxx b/ucb/source/ucp/webdav/webdavservices.cxx index 47509dd326fe..6516603bf1d7 100644 --- a/ucb/source/ucp/webdav/webdavservices.cxx +++ b/ucb/source/ucp/webdav/webdavservices.cxx @@ -31,8 +31,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL ucpdav1_component_getFactory( void * pRet = 0; uno::Reference< lang::XMultiServiceFactory > xSMgr( - reinterpret_cast< lang::XMultiServiceFactory * >( - pServiceManager ) ); + static_cast< lang::XMultiServiceFactory * >( pServiceManager ) ); uno::Reference< lang::XSingleServiceFactory > xFactory; |