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/gdi/lineinfo.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/gdi/lineinfo.cxx')
-rw-r--r-- | vcl/source/gdi/lineinfo.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/gdi/lineinfo.cxx b/vcl/source/gdi/lineinfo.cxx index f8bc5591a3e9..d7104171646a 100644 --- a/vcl/source/gdi/lineinfo.cxx +++ b/vcl/source/gdi/lineinfo.cxx @@ -226,11 +226,11 @@ void LineInfo::applyToB2DPolyPolygon( { basegfx::B2DPolyPolygon aResult; - for(sal_uInt32 c(0); c < io_rLinePolyPolygon.count(); c++) + for(auto const& rPolygon : io_rLinePolyPolygon) { basegfx::B2DPolyPolygon aLineTraget; basegfx::utils::applyLineDashing( - io_rLinePolyPolygon.getB2DPolygon(c), + rPolygon, fDotDashArray, &aLineTraget); aResult.append(aLineTraget); @@ -244,10 +244,10 @@ void LineInfo::applyToB2DPolyPolygon( { const double fHalfLineWidth((GetWidth() * 0.5) + 0.5); - for(sal_uInt32 a(0); a < io_rLinePolyPolygon.count(); a++) + for(auto const& rPolygon : io_rLinePolyPolygon) { o_rFillPolyPolygon.append(basegfx::utils::createAreaGeometry( - io_rLinePolyPolygon.getB2DPolygon(a), + rPolygon, fHalfLineWidth, GetLineJoin(), GetLineCap())); |