comphelper/source/streaming/memorystream.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 212cb61fb6adc05395b9f9afe0dacbd6594ae06b
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Sun May 29 19:57:30 2022 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Sun May 29 21:50:35 2022 +0200

    Drop now-redundant cast
    
    ...that 3ca1a169e571a829598a00a2ffef6e1018d2cb18 "Use boost::noinit_adaptor"
    forgot to remove
    
    Change-Id: I82818c72e9178cda7b9698d8a30e1b8f3c3d87c7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135099
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/comphelper/source/streaming/memorystream.cxx 
b/comphelper/source/streaming/memorystream.cxx
index 8c3dc902f48f..98431e318380 100644
--- a/comphelper/source/streaming/memorystream.cxx
+++ b/comphelper/source/streaming/memorystream.cxx
@@ -147,7 +147,7 @@ sal_Int32 SAL_CALL UNOMemoryStream::readBytes( Sequence< 
sal_Int8 >& aData, sal_
     {
         sal_Int8* pData = &(*maData.begin());
         sal_Int8* pCursor = &(pData[mnCursor]);
-        memcpy( aData.getArray(), static_cast<void*>(pCursor), nBytesToRead );
+        memcpy( aData.getArray(), pCursor, nBytesToRead );
 
         mnCursor += nBytesToRead;
     }

Reply via email to