summaryrefslogtreecommitdiff
path: root/basegfx/source/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-15 09:56:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-15 14:00:48 +0200
commit898cbb22f07a2c1487700326f134fe54e7a13f4d (patch)
treed5bdd749ca565f74976653c7cac90e1eaecc74d6 /basegfx/source/tools
parent10cdeed12ef834f5df3b6577c1d9efcc811d6938 (diff)
use for-range on Sequence in basctl..canvas
Change-Id: Idad3d8fbe785c7b1b8b287a3227372adb2757de8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94260 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx/source/tools')
-rw-r--r--basegfx/source/tools/canvastools.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/basegfx/source/tools/canvastools.cxx b/basegfx/source/tools/canvastools.cxx
index 3ef52a85e197..67bba41a933f 100644
--- a/basegfx/source/tools/canvastools.cxx
+++ b/basegfx/source/tools/canvastools.cxx
@@ -196,9 +196,9 @@ namespace basegfx::unotools
{
::basegfx::B2DPolyPolygon aRes;
- for( sal_Int32 nCurrPoly=0; nCurrPoly<points.getLength(); ++nCurrPoly )
+ for( const auto & p : points )
{
- aRes.append( polygonFromPoint2DSequence( points[nCurrPoly] ) );
+ aRes.append( polygonFromPoint2DSequence( p ) );
}
return aRes;
@@ -240,9 +240,9 @@ namespace basegfx::unotools
{
::basegfx::B2DPolyPolygon aRes;
- for( sal_Int32 nCurrPoly=0; nCurrPoly<curves.getLength(); ++nCurrPoly )
+ for( const auto & c : curves )
{
- aRes.append( polygonFromBezier2DSequence( curves[nCurrPoly] ) );
+ aRes.append( polygonFromBezier2DSequence( c ) );
}
return aRes;