summaryrefslogtreecommitdiff
path: root/drawinglayer/source/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-24 08:30:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-24 09:04:45 +0100
commit6b4fe3e44b4daa89fef6a3385919b00472eaed60 (patch)
treedb2d11ae4e08d0782e1eb240513abfbe8ff33113 /drawinglayer/source/tools
parente975ab34daf72a2b708a46095994d0df3c23dec0 (diff)
loplugin:makeshared in drawinglayer..fpicker
Change-Id: Ib20fec3a7b6bfe2f94c6f5f2f9fa0be6f7c21e97 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87320 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer/source/tools')
-rw-r--r--drawinglayer/source/tools/converters.cxx5
-rw-r--r--drawinglayer/source/tools/wmfemfhelper.cxx5
2 files changed, 4 insertions, 6 deletions
diff --git a/drawinglayer/source/tools/converters.cxx b/drawinglayer/source/tools/converters.cxx
index 010f71810c30..ff9b79a688fa 100644
--- a/drawinglayer/source/tools/converters.cxx
+++ b/drawinglayer/source/tools/converters.cxx
@@ -122,9 +122,8 @@ namespace drawinglayer
const primitive2d::Primitive2DReference xRef(
new primitive2d::ModifiedColorPrimitive2D(
aSequence,
- basegfx::BColorModifierSharedPtr(
- new basegfx::BColorModifier_replace(
- basegfx::BColor(0.0, 0.0, 0.0)))));
+ std::make_shared<basegfx::BColorModifier_replace>(
+ basegfx::BColor(0.0, 0.0, 0.0))));
const primitive2d::Primitive2DContainer xSeq { xRef };
// render
diff --git a/drawinglayer/source/tools/wmfemfhelper.cxx b/drawinglayer/source/tools/wmfemfhelper.cxx
index e153d5d3b7a8..09217d32212e 100644
--- a/drawinglayer/source/tools/wmfemfhelper.cxx
+++ b/drawinglayer/source/tools/wmfemfhelper.cxx
@@ -900,9 +900,8 @@ namespace wmfemfhelper
rTargetHolders.Current().append(
std::make_unique<drawinglayer::primitive2d::ModifiedColorPrimitive2D>(
aSubContent,
- basegfx::BColorModifierSharedPtr(
- new basegfx::BColorModifier_replace(
- basegfx::BColor(0.0, 0.0, 0.0)))));
+ std::make_shared<basegfx::BColorModifier_replace>(
+ basegfx::BColor(0.0, 0.0, 0.0))));
}
else // if(rPropertyHolders.Current().isRasterOpInvert())
{