diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-07-08 16:39:02 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-08 16:47:31 +0200 |
commit | 4aa7d9e63a86496d1538844c82165fd00a763f6b (patch) | |
tree | 82a2d36bc05311db1da6def2f5444aeb8c900b92 /comphelper | |
parent | 7fdbdc5367cc4e86affd4eeb36eb33c9dc4e411f (diff) |
loplugin:redundantcast: redundant static_casts in comphelper
Change-Id: I6112c3cc40383d00ea134bdc650e457f942e0dcf
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/streaming/memorystream.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<sal_Int8*>(&(*maData.begin())); + sal_Int8* pData = &(*maData.begin()); sal_Int8* pCursor = &((pData)[mnCursor]); memcpy( static_cast<void*>(aData.getArray()), static_cast<void*>(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<sal_Int8*>(&(*maData.begin())); + sal_Int8* pData = &(*maData.begin()); sal_Int8* pCursor = &(pData[mnCursor]); memcpy( pCursor, aData.getConstArray(), nBytesToWrite ); |