loplugin:cstylecast: deal with remaining pointer casts
Change-Id: Iafb0d21bc7e6483d7ca9e9ea05234ef78dbb18b2
This commit is contained in:
@@ -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;
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user