diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-08-19 15:52:27 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-08-19 17:21:57 +0200 |
commit | 0d14e1251efeec9f651a28f553447c6d06b778e9 (patch) | |
tree | 6fb1dd9d1681f79fabb94c498c39f0e3e42a4e61 /vcl/quartz | |
parent | 602dd66fecd92f97ac9206bb90a83d0a04dc8e59 (diff) |
loplugin:sequenceloop (macOS)
Change-Id: I5d004dfcce2ce1aad520f9e541432a60627161a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120739
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/quartz')
-rw-r--r-- | vcl/quartz/AquaGraphicsBackend.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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()); } |