diff options
-rw-r--r-- | drawinglayer/source/primitive2d/animatedprimitive2d.cxx | 4 | ||||
-rw-r--r-- | drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drawinglayer/source/primitive2d/animatedprimitive2d.cxx b/drawinglayer/source/primitive2d/animatedprimitive2d.cxx index 5873ee69a51f..67349a83425a 100644 --- a/drawinglayer/source/primitive2d/animatedprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/animatedprimitive2d.cxx @@ -132,9 +132,9 @@ namespace drawinglayer::primitive2d const sal_uInt32 nCount(rmMatrixStack.size()); maMatrixStack.reserve(nCount); - for(sal_uInt32 a(0); a < nCount; a++) + for(const auto& a : rmMatrixStack) { - maMatrixStack.emplace_back(rmMatrixStack[a]); + maMatrixStack.emplace_back(a); } } diff --git a/drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx b/drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx index ab66cb223a66..eb5711307bea 100644 --- a/drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx @@ -51,9 +51,9 @@ namespace drawinglayer::primitive2d // use half size for expand aLogicHalfSize *= 0.5; - for(sal_uInt32 a(0); a < nMarkerCount; a++) + for(const auto& a : rPositions) { - const basegfx::B2DPoint& rPosition(rPositions[a]); + const basegfx::B2DPoint& rPosition(a); const basegfx::B2DRange aRange(rPosition - aLogicHalfSize, rPosition + aLogicHalfSize); basegfx::B2DHomMatrix aTransform; |