From 0d14e1251efeec9f651a28f553447c6d06b778e9 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 19 Aug 2021 15:52:27 +0200 Subject: loplugin:sequenceloop (macOS) Change-Id: I5d004dfcce2ce1aad520f9e541432a60627161a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120739 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- vcl/quartz/AquaGraphicsBackend.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vcl/quartz') 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 #include #include +#include #include #include @@ -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()); } -- cgit