diff options
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/tools/canvastools.cxx | 8 |
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; |