diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-12 09:53:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-12 12:24:28 +0200 |
commit | 5dd762ddc1829a86e7b4e23076143bc01d6073ad (patch) | |
tree | 90ac69d1bab369bc054ac84ede13ec3c87075642 /svx | |
parent | 9bd372218dfea3fb70d503d7532ee2b144ada136 (diff) |
hold MetaAction by rtl::Reference
instead of yet another private implementation of manual reference
counting
Change-Id: Iefb1d2e595e45a2dfdc3be54e1c51b64afeaf9d8
Reviewed-on: https://gerrit.libreoffice.org/52753
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/_bmpmask.cxx | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/svx/source/dialog/_bmpmask.cxx b/svx/source/dialog/_bmpmask.cxx index d436061d9511..74955710061b 100644 --- a/svx/source/dialog/_bmpmask.cxx +++ b/svx/source/dialog/_bmpmask.cxx @@ -728,8 +728,6 @@ GDIMetaFile SvxBmpMask::ImpMask( const GDIMetaFile& rMtf ) if( bReplace ) pAct = new MetaPixelAction( pAct->GetPoint(), aCol ); - else - pAct->Duplicate(); aMtf.AddAction( pAct ); } @@ -744,8 +742,6 @@ GDIMetaFile SvxBmpMask::ImpMask( const GDIMetaFile& rMtf ) if( bReplace ) pAct = new MetaLineColorAction( aCol, !pTrans[ i ] ); - else - pAct->Duplicate(); aMtf.AddAction( pAct ); } @@ -760,8 +756,6 @@ GDIMetaFile SvxBmpMask::ImpMask( const GDIMetaFile& rMtf ) if( bReplace ) pAct = new MetaFillColorAction( aCol, !pTrans[ i ] ); - else - pAct->Duplicate(); aMtf.AddAction( pAct ); } @@ -776,8 +770,6 @@ GDIMetaFile SvxBmpMask::ImpMask( const GDIMetaFile& rMtf ) if( bReplace ) pAct = new MetaTextColorAction( aCol ); - else - pAct->Duplicate(); aMtf.AddAction( pAct ); } @@ -792,8 +784,6 @@ GDIMetaFile SvxBmpMask::ImpMask( const GDIMetaFile& rMtf ) if( bReplace ) pAct = new MetaTextFillColorAction( aCol, !pTrans[ i ] ); - else - pAct->Duplicate(); aMtf.AddAction( pAct ); } @@ -812,8 +802,6 @@ GDIMetaFile SvxBmpMask::ImpMask( const GDIMetaFile& rMtf ) aFont.SetColor( aCol ); pAct = new MetaFontAction( aFont ); } - else - pAct->Duplicate(); aMtf.AddAction( pAct ); } @@ -832,8 +820,6 @@ GDIMetaFile SvxBmpMask::ImpMask( const GDIMetaFile& rMtf ) aWall.SetColor( aCol ); pAct = new MetaWallpaperAction( pAct->GetRect(), aWall ); } - else - pAct->Duplicate(); aMtf.AddAction( pAct ); } @@ -903,7 +889,6 @@ GDIMetaFile SvxBmpMask::ImpMask( const GDIMetaFile& rMtf ) default: { - pAction->Duplicate(); aMtf.AddAction( pAction ); } break; @@ -967,8 +952,6 @@ GDIMetaFile SvxBmpMask::ImpReplaceTransparency( const GDIMetaFile& rMtf, const C for ( size_t i = 0; i < nActionCount; i++ ) { MetaAction* pAct = rMtf.GetAction( i ); - - pAct->Duplicate(); aMtf.AddAction( pAct ); } |