diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:23:52 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:23:52 +0200 |
commit | 66a0a3726adc17f1f5378c4c6de00bb930a370d5 (patch) | |
tree | 913412a14b7bbb2ab8f69f708b63c472e67a4dda /comphelper/source/streaming | |
parent | bc14d27dd0b50a37ff7ec93b49de976e01c54d0d (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I1ceb4359188b61e15a31750a496021c4394e1a3f
Diffstat (limited to 'comphelper/source/streaming')
-rw-r--r-- | comphelper/source/streaming/memorystream.cxx | 4 | ||||
-rw-r--r-- | comphelper/source/streaming/oslfile2streamwrap.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/comphelper/source/streaming/memorystream.cxx b/comphelper/source/streaming/memorystream.cxx index 37016836d223..3efe2d1126f2 100644 --- a/comphelper/source/streaming/memorystream.cxx +++ b/comphelper/source/streaming/memorystream.cxx @@ -115,7 +115,7 @@ sal_Int32 SAL_CALL UNOMemoryStream::readBytes( Sequence< sal_Int8 >& aData, sal_ { sal_Int8* pData = static_cast<sal_Int8*>(&(*maData.begin())); sal_Int8* pCursor = &((pData)[mnCursor]); - memcpy( (void*)aData.getArray(), (void*)pCursor, nBytesToRead ); + memcpy( static_cast<void*>(aData.getArray()), static_cast<void*>(pCursor), nBytesToRead ); mnCursor += nBytesToRead; } @@ -190,7 +190,7 @@ void SAL_CALL UNOMemoryStream::writeBytes( const Sequence< sal_Int8 >& aData ) t sal_Int8* pData = static_cast<sal_Int8*>(&(*maData.begin())); sal_Int8* pCursor = &(pData[mnCursor]); - memcpy( (void*)pCursor, (void*)aData.getConstArray(), nBytesToWrite ); + memcpy( pCursor, aData.getConstArray(), nBytesToWrite ); mnCursor += nBytesToWrite; } diff --git a/comphelper/source/streaming/oslfile2streamwrap.cxx b/comphelper/source/streaming/oslfile2streamwrap.cxx index 4b9aad443b6c..4b3dd8e81606 100644 --- a/comphelper/source/streaming/oslfile2streamwrap.cxx +++ b/comphelper/source/streaming/oslfile2streamwrap.cxx @@ -51,7 +51,7 @@ sal_Int32 SAL_CALL OSLInputStreamWrapper::readBytes(css::uno::Sequence< sal_Int8 aData.realloc(nBytesToRead); sal_uInt64 nRead = 0; - FileBase::RC eError = m_pFile->read((void*)aData.getArray(), nBytesToRead, nRead); + FileBase::RC eError = m_pFile->read(static_cast<void*>(aData.getArray()), nBytesToRead, nRead); if (eError != FileBase::E_None) throw css::io::BufferSizeExceededException(OUString(),static_cast<css::uno::XWeak*>(this)); |