summaryrefslogtreecommitdiff
path: root/canvas/qa/cppunit/canvastest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'canvas/qa/cppunit/canvastest.cxx')
-rw-r--r--canvas/qa/cppunit/canvastest.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/canvas/qa/cppunit/canvastest.cxx b/canvas/qa/cppunit/canvastest.cxx
index 993983377d08..5414a757d3c3 100644
--- a/canvas/qa/cppunit/canvastest.cxx
+++ b/canvas/qa/cppunit/canvastest.cxx
@@ -114,11 +114,8 @@ public:
mRenderState.AffineTransform = geometry::AffineMatrix2D(2, 0, 0, 0, 2, 0);
mViewState.AffineTransform = geometry::AffineMatrix2D(5, 0, 0, 0, 5, 0);
- uno::Sequence<geometry::RealPoint2D> points(2);
- points[0] = geometry::RealPoint2D(10, 5);
- points[1] = geometry::RealPoint2D(88, 5);
- uno::Sequence<uno::Sequence<geometry::RealPoint2D>> polygonPoints(1);
- polygonPoints[0] = points;
+ uno::Sequence<uno::Sequence<geometry::RealPoint2D>> polygonPoints{ { { 10, 5 },
+ { 88, 5 } } };
uno::Reference<rendering::XLinePolyPolygon2D> polygon
= mDevice->createCompatibleLinePolyPolygon(polygonPoints);
polygon->setClosed(0, false);