summaryrefslogtreecommitdiff
path: root/drawinglayer/source/primitive2d/textstrikeoutprimitive2d.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'drawinglayer/source/primitive2d/textstrikeoutprimitive2d.cxx')
-rw-r--r--drawinglayer/source/primitive2d/textstrikeoutprimitive2d.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/drawinglayer/source/primitive2d/textstrikeoutprimitive2d.cxx b/drawinglayer/source/primitive2d/textstrikeoutprimitive2d.cxx
index 269be2d01817..7300bc2a70eb 100644
--- a/drawinglayer/source/primitive2d/textstrikeoutprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/textstrikeoutprimitive2d.cxx
@@ -191,8 +191,8 @@ namespace drawinglayer::primitive2d
// add primitive
const attribute::LineAttribute aLineAttribute(getFontColor(), fStrikeoutHeight, basegfx::B2DLineJoin::NONE);
- Primitive2DContainer xRetval(1);
- xRetval[0] = new PolygonStrokePrimitive2D(std::move(aStrikeoutLine), aLineAttribute);
+ Primitive2DContainer xRetval {
+ new PolygonStrokePrimitive2D(std::move(aStrikeoutLine), aLineAttribute) };
if(bDoubleLine)
{