summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdobj.cxx
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2018-10-14 22:09:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-15 07:56:00 +0200
commit40bc840da261fcc5652e5278dc2566b61f990884 (patch)
tree7d472b8f69bfa7bf6b8c67585d74b6dee4f5bcc4 /svx/source/svdraw/svdobj.cxx
parent2da25cb43f4af8d094b01de1073eee2e2023c029 (diff)
use range based loops over B2DPolyPolygon in svx
avoid copy when adapting polygon in SdrPathObj::ImpForceKind() Change-Id: Ifd830ecd181563102ee269c6a609ef8ebeab670c Reviewed-on: https://gerrit.libreoffice.org/61767 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdobj.cxx')
-rw-r--r--svx/source/svdraw/svdobj.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx
index f57376e7c3e9..fbbf0ff2d008 100644
--- a/svx/source/svdraw/svdobj.cxx
+++ b/svx/source/svdraw/svdobj.cxx
@@ -1788,15 +1788,14 @@ void SdrObject::PaintMacro(OutputDevice& rOut, const tools::Rectangle& , const S
{
const RasterOp eRop(rOut.GetRasterOp());
const basegfx::B2DPolyPolygon aPolyPolygon(TakeXorPoly());
- const sal_uInt32 nCount(aPolyPolygon.count());
rOut.SetLineColor(COL_BLACK);
rOut.SetFillColor();
rOut.SetRasterOp(RasterOp::Invert);
- for(sal_uInt32 a(0); a < nCount; a++)
+ for(auto const& rPolygon : aPolyPolygon)
{
- rOut.DrawPolyLine(aPolyPolygon.getB2DPolygon(a));
+ rOut.DrawPolyLine(rPolygon);
}
rOut.SetRasterOp(eRop);