[Libreoffice-commits] core.git: vcl/quartz

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Thu Aug 19 15:22:32 UTC 2021


 vcl/quartz/AquaGraphicsBackend.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 0d14e1251efeec9f651a28f553447c6d06b778e9
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Aug 19 15:52:27 2021 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Aug 19 17:21:57 2021 +0200

    loplugin:sequenceloop (macOS)
    
    Change-Id: I5d004dfcce2ce1aad520f9e541432a60627161a7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120739
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/vcl/quartz/AquaGraphicsBackend.cxx b/vcl/quartz/AquaGraphicsBackend.cxx
index 6bc44b39f89e..ee3362e4462b 100644
--- a/vcl/quartz/AquaGraphicsBackend.cxx
+++ b/vcl/quartz/AquaGraphicsBackend.cxx
@@ -23,6 +23,7 @@
 #include <cassert>
 #include <cstring>
 #include <numeric>
+#include <utility>
 
 #include <basegfx/polygon/b2dpolygon.hxx>
 #include <basegfx/polygon/b2dpolygontools.hxx>
@@ -691,7 +692,7 @@ bool AquaGraphicsBackend::drawPolyPolygon(const basegfx::B2DHomMatrix& rObjectTo
     CGMutablePathRef xPath = CGPathCreateMutable();
     // tdf#120252 Use the correct, already transformed PolyPolygon (as long as
     // the transformation is not used here...)
-    for (auto const& rPolygon : aPolyPolygon)
+    for (auto const& rPolygon : std::as_const(aPolyPolygon))
     {
         AddPolygonToPath(xPath, rPolygon, true, !getAntiAlias(), mrShared.isPenVisible());
     }


More information about the Libreoffice-commits mailing list