diff options
author | Henrik Palomäki <henrik.palomaki@yandex.com> | 2021-11-17 09:39:13 +0200 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2021-11-23 13:57:13 +0100 |
commit | 6f435016092953478b5636fe9078866500fc7b90 (patch) | |
tree | 03f72a00aca2e4516a634c9ed9bc267cc143adfe /drawinglayer | |
parent | da6ac377c6a4bb84ba4bdcc41e73c9079b009039 (diff) |
tdf#145538 Use range based for loops
* Used range based for loop in fillhatchprimitive2d.cxx
+ Goal: Better readability of the code
Change-Id: Ie8ddaa9960e714b161ec530961b36a9935055ae0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125413
Tested-by: Hossein <hossein@libreoffice.org>
Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/primitive2d/fillhatchprimitive2d.cxx | 4 |
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); |