diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-24 13:21:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-25 07:06:10 +0100 |
commit | cee62b1068775b7d0bcd2875e9789c8c36c22057 (patch) | |
tree | c093300a02cc6dc5db73ba0a51067cc480ddfdf5 /slideshow/source/engine/shapes/gdimtftools.cxx | |
parent | a46e768810e82abaf98e5cef02c697c718877974 (diff) |
loplugin:makeshared in slideshow
Change-Id: I87dead1ed09aa50c939c03ae8ed3faf9300a8b4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87354
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'slideshow/source/engine/shapes/gdimtftools.cxx')
-rw-r--r-- | slideshow/source/engine/shapes/gdimtftools.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slideshow/source/engine/shapes/gdimtftools.cxx b/slideshow/source/engine/shapes/gdimtftools.cxx index 2a7bb51a4ae8..3a06b8002dd7 100644 --- a/slideshow/source/engine/shapes/gdimtftools.cxx +++ b/slideshow/source/engine/shapes/gdimtftools.cxx @@ -131,7 +131,7 @@ public: hasUnsupportedActions(aGraphic.GetGDIMetaFile()) ) ) { // wrap bitmap into GDIMetafile - GDIMetaFileSharedPtr xMtf(new GDIMetaFile); + GDIMetaFileSharedPtr xMtf = std::make_shared<GDIMetaFile>(); ::BitmapEx aBmpEx( aGraphic.GetBitmapEx() ); @@ -346,7 +346,7 @@ bool getAnimationFromGraphic( VectorOfMtfAnimationFrames& o_rFrames, // extract current aVDev content into a new animation // frame - GDIMetaFileSharedPtr pMtf( new GDIMetaFile() ); + GDIMetaFileSharedPtr pMtf = std::make_shared<GDIMetaFile>(); pMtf->AddAction( new MetaBmpExAction( aEmptyPoint, BitmapEx( |