From 98215b5bdb07cb0ff2cfea8b5c85eab07a11eda1 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 8 Jun 2015 16:24:04 +0200 Subject: loplugin:cstylecast: deal with remaining pointer casts Change-Id: Iafb0d21bc7e6483d7ca9e9ea05234ef78dbb18b2 --- cppcanvas/source/mtfrenderer/emfplus.cxx | 2 +- cppcanvas/source/mtfrenderer/implrenderer.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cppcanvas/source') 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(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(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(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); -- cgit