summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drawinglayer/source/primitive2d/fillhatchprimitive2d.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/drawinglayer/source/primitive2d/fillhatchprimitive2d.cxx b/drawinglayer/source/primitive2d/fillhatchprimitive2d.cxx
index 49b26cb919b0..60d47c3ed559 100644
--- a/drawinglayer/source/primitive2d/fillhatchprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/fillhatchprimitive2d.cxx
@@ -114,9 +114,9 @@ namespace drawinglayer::primitive2d
const basegfx::B2DPoint aStart(0.0, 0.0);
const basegfx::B2DPoint aEnd(1.0, 0.0);
- for(size_t a(0); a < aMatrices.size(); a++)
+ for (const auto &a : aMatrices)
{
- const basegfx::B2DHomMatrix& rMatrix = aMatrices[a];
+ const basegfx::B2DHomMatrix& rMatrix = a;
basegfx::B2DPolygon aNewLine;
aNewLine.append(rMatrix * aStart);