vcl/quartz/AquaGraphicsBackend.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 0d14e1251efeec9f651a28f553447c6d06b778e9 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Aug 19 15:52:27 2021 +0200 Commit: Stephan Bergmann <sberg...@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 <sberg...@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()); }