summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/shapes/gdimtftools.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/engine/shapes/gdimtftools.cxx')
-rw-r--r--slideshow/source/engine/shapes/gdimtftools.cxx4
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(