summaryrefslogtreecommitdiff
path: root/cppcanvas
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-03-03 13:10:45 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-03 16:27:08 +0100
commit5af9e26ae8b463e85cb84f79a366c61d49a2d52b (patch)
treed8e001ed45e2a441e19864f8e2613317c9019ffa /cppcanvas
parent20b1a4589ee95e34afdb3c82834fe32e1ccb25fb (diff)
Simplify containers iterations in cppcanvas, cppu, cppuhelper
Use range-based loop or replace with STL functions Change-Id: I72bf7cdb632c04e2fc8d4f7ab85cb6571222aa07 Reviewed-on: https://gerrit.libreoffice.org/68636 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppcanvas')
-rw-r--r--cppcanvas/source/mtfrenderer/textaction.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/cppcanvas/source/mtfrenderer/textaction.cxx b/cppcanvas/source/mtfrenderer/textaction.cxx
index 422a92279659..93c0d617a22b 100644
--- a/cppcanvas/source/mtfrenderer/textaction.cxx
+++ b/cppcanvas/source/mtfrenderer/textaction.cxx
@@ -2025,13 +2025,11 @@ namespace cppcanvas
aMapModeTransform.set(0,2, 0.0);
aMapModeTransform.set(1,2, 0.0);
- PolyPolyVector::const_iterator aIter( aVCLPolyPolyVector.begin() );
- const PolyPolyVector::const_iterator aEnd( aVCLPolyPolyVector.end() );
- for( ; aIter!= aEnd; ++aIter )
+ for( const auto& rVCLPolyPolygon : aVCLPolyPolyVector )
{
::basegfx::B2DPolyPolygon aPolyPolygon;
- aPolyPolygon = aIter->getB2DPolyPolygon();
+ aPolyPolygon = rVCLPolyPolygon.getB2DPolyPolygon();
aPolyPolygon.transform( aMapModeTransform );
// append result to collecting polypoly