diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-06-09 18:27:28 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-06-09 19:57:46 +0200 |
commit | fca7d50b17fae217bd34e9e6f5e3a8b0fda93833 (patch) | |
tree | 035cc1dd4e4957a05055970cf035deca68518c1e /sd/source/ui/presenter | |
parent | 5897a97bb53bcbf2283161cc22f43d87f575f3d6 (diff) |
Simplify Sequences initializations (sd)
Change-Id: I968f1209961ba30ad0837846ae1ba4a9249663c8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116934
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sd/source/ui/presenter')
-rw-r--r-- | sd/source/ui/presenter/PresenterCanvas.cxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sd/source/ui/presenter/PresenterCanvas.cxx b/sd/source/ui/presenter/PresenterCanvas.cxx index f1f2271a1098..d657d6f37596 100644 --- a/sd/source/ui/presenter/PresenterCanvas.cxx +++ b/sd/source/ui/presenter/PresenterCanvas.cxx @@ -660,12 +660,15 @@ Reference<rendering::XPolyPolygon2D> PresenterCanvas::UpdateSpriteClip ( else { // Create a new clip polygon from the window clip rectangle. - Sequence<Sequence<geometry::RealPoint2D> > aPoints (1); - aPoints[0] = Sequence<geometry::RealPoint2D>(4); - aPoints[0][0] = geometry::RealPoint2D(nMinX,nMinY); - aPoints[0][1] = geometry::RealPoint2D(nMaxX,nMinY); - aPoints[0][2] = geometry::RealPoint2D(nMaxX,nMaxY); - aPoints[0][3] = geometry::RealPoint2D(nMinX,nMaxY); + Sequence<Sequence<geometry::RealPoint2D> > aPoints + { + { + { nMinX,nMinY }, + { nMaxX,nMinY }, + { nMaxX,nMaxY }, + { nMinX,nMaxY } + } + }; Reference<rendering::XLinePolyPolygon2D> xLinePolygon( xDevice->createCompatibleLinePolyPolygon(aPoints)); if (xLinePolygon.is()) |