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