summaryrefslogtreecommitdiffstats
path: root/drawinglayer
diff options
context:
space:
mode:
authorHenrik Palomäki <henrik.palomaki@yandex.com>2021-11-17 09:39:13 +0200
committerHossein <hossein@libreoffice.org>2021-11-23 13:57:13 +0100
commit6f435016092953478b5636fe9078866500fc7b90 (patch)
tree03f72a00aca2e4516a634c9ed9bc267cc143adfe /drawinglayer
parentavoid OUString temporary in INetURLObject::changeScheme (diff)
downloadcore-6f435016092953478b5636fe9078866500fc7b90.tar.gz
core-6f435016092953478b5636fe9078866500fc7b90.zip
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.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);