summaryrefslogtreecommitdiff
path: root/drawinglayer/source
diff options
context:
space:
mode:
Diffstat (limited to 'drawinglayer/source')
-rw-r--r--drawinglayer/source/primitive2d/polygonprimitive2d.cxx9
-rw-r--r--drawinglayer/source/primitive2d/textprimitive2d.cxx6
2 files changed, 6 insertions, 9 deletions
diff --git a/drawinglayer/source/primitive2d/polygonprimitive2d.cxx b/drawinglayer/source/primitive2d/polygonprimitive2d.cxx
index fb6a8ed369d2..435408cd5846 100644
--- a/drawinglayer/source/primitive2d/polygonprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/polygonprimitive2d.cxx
@@ -142,16 +142,15 @@ void SingleLinePrimitive2D::get2DDecomposition(
if (getStart() == getEnd())
{
// single point
- std::vector<basegfx::B2DPoint> aPoints = { getStart() };
- Primitive2DContainer aSequence
- = { new PointArrayPrimitive2D(std::move(aPoints), getBColor()) };
+ Primitive2DContainer aSequence = { new PointArrayPrimitive2D(
+ std::vector<basegfx::B2DPoint>{ getStart() }, getBColor()) };
rVisitor.visit(aSequence);
}
else
{
// line
- basegfx::B2DPolygon aPolygon{ getStart(), getEnd() };
- Primitive2DContainer aSequence = { new PolygonHairlinePrimitive2D(aPolygon, getBColor()) };
+ Primitive2DContainer aSequence = { new PolygonHairlinePrimitive2D(
+ basegfx::B2DPolygon{ getStart(), getEnd() }, getBColor()) };
rVisitor.visit(aSequence);
}
}
diff --git a/drawinglayer/source/primitive2d/textprimitive2d.cxx b/drawinglayer/source/primitive2d/textprimitive2d.cxx
index f60f73b21045..ee6144df7dd2 100644
--- a/drawinglayer/source/primitive2d/textprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/textprimitive2d.cxx
@@ -191,10 +191,8 @@ void TextSimplePortionPrimitive2D::create2DDecomposition(
aPolygonTransform.decompose(aScale, aTranslate, fRotate, fShearX);
// create outline text effect with current content and replace
- Primitive2DReference aNewTextEffect(new TextEffectPrimitive2D(
- std::move(aRetval), aTranslate, fRotate, TextEffectStyle2D::Outline));
-
- aRetval = Primitive2DContainer{ aNewTextEffect };
+ aRetval = Primitive2DContainer{ Primitive2DReference(new TextEffectPrimitive2D(
+ std::move(aRetval), aTranslate, fRotate, TextEffectStyle2D::Outline)) };
}
rContainer.append(std::move(aRetval));