drawinglayer/source/primitive2d/fillhatchprimitive2d.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6f435016092953478b5636fe9078866500fc7b90
Author:     Henrik Palomäki <henrik.palom...@yandex.com>
AuthorDate: Wed Nov 17 09:39:13 2021 +0200
Commit:     Hossein <hoss...@libreoffice.org>
CommitDate: Tue Nov 23 13:57:13 2021 +0100

    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 <hoss...@libreoffice.org>
    Reviewed-by: Hossein <hoss...@libreoffice.org>

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);

Reply via email to