diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:24:04 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:24:04 +0200 |
commit | 98215b5bdb07cb0ff2cfea8b5c85eab07a11eda1 (patch) | |
tree | 5a6fb49e5ef47a7c45d6830f98c51607d1dc79c1 /cppcanvas | |
parent | loplugin:cstylecast: deal with remaining pointer casts (diff) | |
download | core-98215b5bdb07cb0ff2cfea8b5c85eab07a11eda1.tar.gz core-98215b5bdb07cb0ff2cfea8b5c85eab07a11eda1.zip |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: Iafb0d21bc7e6483d7ca9e9ea05234ef78dbb18b2
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/emfplus.cxx | 2 | ||||
-rw-r--r-- | cppcanvas/source/mtfrenderer/implrenderer.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx index 701cfa3d7153..61eff0ca9611 100644 --- a/cppcanvas/source/mtfrenderer/emfplus.cxx +++ b/cppcanvas/source/mtfrenderer/emfplus.cxx @@ -1808,7 +1808,7 @@ namespace cppcanvas OutDevState& rState, const CanvasSharedPtr& rCanvas ) { sal_uInt32 length = pAct->GetDataSize (); - SvMemoryStream rMF ((void*) pAct->GetData (), length, StreamMode::READ); + SvMemoryStream rMF (const_cast<sal_uInt8 *>(pAct->GetData ()), length, StreamMode::READ); length -= 4; diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index c1b3a1701b88..6fd6de509a1e 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -1662,7 +1662,7 @@ namespace cppcanvas const sal_uInt8* pData = pAct->GetData(); if ( pData ) { - SvMemoryStream aMemStm( (void*)pData, pAct->GetDataSize(), StreamMode::READ ); + SvMemoryStream aMemStm( const_cast<sal_uInt8 *>(pData), pAct->GetDataSize(), StreamMode::READ ); SvtGraphicFill aFill; ReadSvtGraphicFill( aMemStm, aFill ); @@ -1789,7 +1789,7 @@ namespace cppcanvas } else if( pAct->GetComment() == "EMF_PLUS_HEADER_INFO" ) { SAL_INFO ("cppcanvas.emf", "EMF+ passed to canvas mtf renderer - header info, size: " << pAct->GetDataSize ()); - SvMemoryStream rMF ((void*) pAct->GetData (), pAct->GetDataSize (), StreamMode::READ); + SvMemoryStream rMF (const_cast<sal_uInt8 *>(pAct->GetData ()), pAct->GetDataSize (), StreamMode::READ); rMF.ReadInt32( nFrameLeft ).ReadInt32( nFrameTop ).ReadInt32( nFrameRight ).ReadInt32( nFrameBottom ); SAL_INFO ("cppcanvas.emf", "EMF+ picture frame: " << nFrameLeft << "," << nFrameTop << " - " << nFrameRight << "," << nFrameBottom); |