From 4aa7d9e63a86496d1538844c82165fd00a763f6b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 8 Jul 2016 16:39:02 +0200 Subject: loplugin:redundantcast: redundant static_casts in comphelper Change-Id: I6112c3cc40383d00ea134bdc650e457f942e0dcf --- comphelper/source/streaming/memorystream.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'comphelper/source/streaming') diff --git a/comphelper/source/streaming/memorystream.cxx b/comphelper/source/streaming/memorystream.cxx index 35b99a80dc8c..4e9eb64c1479 100644 --- a/comphelper/source/streaming/memorystream.cxx +++ b/comphelper/source/streaming/memorystream.cxx @@ -113,7 +113,7 @@ sal_Int32 SAL_CALL UNOMemoryStream::readBytes( Sequence< sal_Int8 >& aData, sal_ if( nBytesToRead ) { - sal_Int8* pData = static_cast(&(*maData.begin())); + sal_Int8* pData = &(*maData.begin()); sal_Int8* pCursor = &((pData)[mnCursor]); memcpy( static_cast(aData.getArray()), static_cast(pCursor), nBytesToRead ); @@ -188,7 +188,7 @@ void SAL_CALL UNOMemoryStream::writeBytes( const Sequence< sal_Int8 >& aData ) t if( static_cast< sal_Int32 >( nNewSize ) > static_cast< sal_Int32 >( maData.size() ) ) maData.resize( static_cast< sal_Int32 >( nNewSize ) ); - sal_Int8* pData = static_cast(&(*maData.begin())); + sal_Int8* pData = &(*maData.begin()); sal_Int8* pCursor = &(pData[mnCursor]); memcpy( pCursor, aData.getConstArray(), nBytesToWrite ); -- cgit