diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-03-03 13:10:45 +0300 |
---|---|---|
committer | Aron Budea <aron.budea@collabora.com> | 2019-11-22 17:26:27 +0100 |
commit | 58ef4b593bba3d592e07e0f25140808c74f8aa0f (patch) | |
tree | e2c9db0f91a5092be86340e7b3b109c76406bf33 /cppcanvas | |
parent | 2ba468bc4c29968751c77d69a7c515822222a849 (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>
Reviewed-on: https://gerrit.libreoffice.org/83472
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Tested-by: Aron Budea <aron.budea@collabora.com>
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/textaction.cxx | 6 |
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 |