| commit | 6f435016092953478b5636fe9078866500fc7b90 | [log] |
|---|---|---|
| author | Henrik Palomäki <henrik.palomaki@yandex.com> | Wed Nov 17 09:39:13 2021 +0200 |
| committer | Hossein <hossein@libreoffice.org> | Tue Nov 23 13:57:13 2021 +0100 |
| tree | 03f72a00aca2e4516a634c9ed9bc267cc143adfe | |
| 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>
diff --git a/drawinglayer/source/primitive2d/fillhatchprimitive2d.cxx b/drawinglayer/source/primitive2d/fillhatchprimitive2d.cxx index 49b26cb..60d47c3 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);