summaryrefslogtreecommitdiff
path: root/svx/source/sdr/overlay
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-19 15:53:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-20 11:38:55 +0100
commitd8ed3bda462b351d2b98ec57cfdb879e0eec0010 (patch)
tree10d3696813b853e6b90cf045d89b9203206004b9 /svx/source/sdr/overlay
parenta87fa0206bbcbcf9aa13ee17f6f41d34e176775e (diff)
loplugin:refcounting in svx
Change-Id: I79afd219a29ad176ce72020579d2b29a0b3ec09d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111220 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/sdr/overlay')
-rw-r--r--svx/source/sdr/overlay/overlaypolypolygon.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/svx/source/sdr/overlay/overlaypolypolygon.cxx b/svx/source/sdr/overlay/overlaypolypolygon.cxx
index 5be533074a50..f71b664b7a06 100644
--- a/svx/source/sdr/overlay/overlaypolypolygon.cxx
+++ b/svx/source/sdr/overlay/overlaypolypolygon.cxx
@@ -50,13 +50,12 @@ namespace sdr::overlay
{
const drawinglayer::attribute::LineAttribute aLineAttribute(getBaseColor().getBColor(), mfLineWidth);
- auto aLine(new drawinglayer::primitive2d::PolyPolygonStrokePrimitive2D(maLinePolyPolygon, aLineAttribute));
+ aReturnContainer = drawinglayer::primitive2d::Primitive2DContainer {
+ new drawinglayer::primitive2d::PolyPolygonStrokePrimitive2D(maLinePolyPolygon, aLineAttribute) };
- aReturnContainer = drawinglayer::primitive2d::Primitive2DContainer { aLine };
if (maFillColor.GetAlpha() != 0)
{
- auto aFill(new drawinglayer::primitive2d::PolyPolygonColorPrimitive2D(maLinePolyPolygon, maFillColor.getBColor()));
- aReturnContainer.push_back(aFill);
+ aReturnContainer.push_back(new drawinglayer::primitive2d::PolyPolygonColorPrimitive2D(maLinePolyPolygon, maFillColor.getBColor()));
}
sal_uInt8 nTransparency = 255 - getBaseColor().GetAlpha();