diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2018-10-12 20:06:18 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-10-13 15:02:17 +0200 |
commit | 00e10ae3189a4407ffb1a48f836cd52dc9a1b6df (patch) | |
tree | 8da59257ef54f8843b0e12e44591f6e17e9b6d24 /vcl/source/filter/wmf/wmfwr.cxx | |
parent | b9234b43ed259a10cf9077032af0f79740f01d8b (diff) |
use range based loops over B2DPolyPolygon in vcl
Change-Id: I98f17311822ba50b0c8eaa50fbdef088c76168d4
Reviewed-on: https://gerrit.libreoffice.org/61730
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl/source/filter/wmf/wmfwr.cxx')
-rw-r--r-- | vcl/source/filter/wmf/wmfwr.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/vcl/source/filter/wmf/wmfwr.cxx b/vcl/source/filter/wmf/wmfwr.cxx index 3c8c1240384e..a7eb3e212952 100644 --- a/vcl/source/filter/wmf/wmfwr.cxx +++ b/vcl/source/filter/wmf/wmfwr.cxx @@ -984,10 +984,9 @@ void WMFWriter::HandleLineInfoPolyPolygons(const LineInfo& rInfo, const basegfx: aSrcLineInfo = rInfo; SetLineAndFillAttr(); - for(sal_uInt32 a(0); a < aLinePolyPolygon.count(); a++) + for(auto const& rB2DPolygon : aLinePolyPolygon) { - const basegfx::B2DPolygon aCandidate(aLinePolyPolygon.getB2DPolygon(a)); - WMFRecord_PolyLine( tools::Polygon(aCandidate) ); + WMFRecord_PolyLine( tools::Polygon(rB2DPolygon) ); } } @@ -1000,10 +999,9 @@ void WMFWriter::HandleLineInfoPolyPolygons(const LineInfo& rInfo, const basegfx: aSrcFillColor = aOldLineColor; SetLineAndFillAttr(); - for(sal_uInt32 a(0); a < aFillPolyPolygon.count(); a++) + for(auto const& rB2DPolygon : aFillPolyPolygon) { - const tools::Polygon aPolygon(aFillPolyPolygon.getB2DPolygon(a)); - WMFRecord_Polygon( aPolygon ); + WMFRecord_Polygon( tools::Polygon(rB2DPolygon) ); } aSrcLineColor = aOldLineColor; |