diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-01-02 21:57:23 +0100 |
---|---|---|
committer | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-01-09 23:03:40 +0000 |
commit | 5adab0927483d039037b0f93894627e41a2c72f2 (patch) | |
tree | 9c3a35c90016091f00654f641322de2ac4c7caca /svtools | |
parent | 62a94dcf0c750e335d6ce272d8a5df9813910d5a (diff) |
replace C-style casts with const_cast
Change-Id: Ica6522b4bfe2aa4517469e89cabe5d4d057cb6b7
Reviewed-on: https://gerrit.libreoffice.org/32657
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/graphic/grfmgr2.cxx | 6 | ||||
-rw-r--r-- | svtools/source/misc/transfer.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/graphic/grfmgr2.cxx b/svtools/source/graphic/grfmgr2.cxx index 408bee56e2a0..e2608bbe6cb5 100644 --- a/svtools/source/graphic/grfmgr2.cxx +++ b/svtools/source/graphic/grfmgr2.cxx @@ -1622,9 +1622,9 @@ void GraphicManager::ImplDraw( OutputDevice* pOut, const Point& rPt, const Size& pOut->Push( PushFlags::CLIPREGION ); pOut->IntersectClipRegion( Rectangle( aOutPt, aOutSz ) ); - ( (GDIMetaFile&) rMtf ).WindStart(); - ( (GDIMetaFile&) rMtf ).Play( pOut, aOutPt, aOutSz ); - ( (GDIMetaFile&) rMtf ).WindStart(); + const_cast<GDIMetaFile&>(rMtf).WindStart(); + const_cast<GDIMetaFile&>(rMtf).Play( pOut, aOutPt, aOutSz ); + const_cast<GDIMetaFile&>(rMtf).WindStart(); pOut->Pop(); } diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx index ade1bc011038..08195e6af508 100644 --- a/svtools/source/misc/transfer.cxx +++ b/svtools/source/misc/transfer.cxx @@ -690,7 +690,7 @@ bool TransferableHelper::SetGDIMetaFile( const GDIMetaFile& rMtf, const DataFlav { SvMemoryStream aMemStm( 65535, 65535 ); - ( (GDIMetaFile&) rMtf ).Write( aMemStm ); + const_cast<GDIMetaFile&>(rMtf).Write( aMemStm ); maAny <<= Sequence< sal_Int8 >( static_cast< const sal_Int8* >( aMemStm.GetData() ), aMemStm.Seek( STREAM_SEEK_TO_END ) ); } |