diff options
author | vgeof <vivians88@hotmail.fr> | 2020-05-09 18:57:44 -0300 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-05-19 09:40:05 +0200 |
commit | 8209c2569f5726f9ed29f75d30efdccb94f98fe5 (patch) | |
tree | 934892f2d6bd32d835d42857e17311e7584509e1 /basegfx | |
parent | 8a21d5053d331160e4913dc80c045a454ec84de3 (diff) |
tdf#88205 EasyHack change css::uno::Sequence initializations
1st commit. Use initializer lists for uno::Sequence in 4 files
Change-Id: I0192b4b8f023fb8d606dff81c4b910c8c7c2a9a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93900
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Tested-by: Jenkins
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/tools/canvastools.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/basegfx/source/tools/canvastools.cxx b/basegfx/source/tools/canvastools.cxx index 67bba41a933f..11ebe70dec28 100644 --- a/basegfx/source/tools/canvastools.cxx +++ b/basegfx/source/tools/canvastools.cxx @@ -131,15 +131,14 @@ namespace basegfx::unotools if( rPoly.areControlPointsUsed() ) { - uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > > outputSequence( 1 ); - outputSequence[0] = bezierSequenceFromB2DPolygon( rPoly ); + uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > > outputSequence{ bezierSequenceFromB2DPolygon( rPoly )}; xRes = xGraphicDevice->createCompatibleBezierPolyPolygon( outputSequence ); } else { - uno::Sequence< uno::Sequence< geometry::RealPoint2D > > outputSequence( 1 ); - outputSequence[0] = pointSequenceFromB2DPolygon( rPoly ); + uno::Sequence< uno::Sequence< geometry::RealPoint2D > > outputSequence{ + pointSequenceFromB2DPolygon( rPoly )}; xRes = xGraphicDevice->createCompatibleLinePolyPolygon( outputSequence ); } |