diff options
Diffstat (limited to 'comphelper/source/streaming')
-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 ); |