diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-17 20:16:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-18 08:54:36 +0200 |
commit | f46740abc225f5b4c7f604bf3ef32c503c7fc858 (patch) | |
tree | 59942cedf60d33464df43305b550247d2e000edd /vcl/source/gdi/lineinfo.cxx | |
parent | ca3557bedef8dd968f6455875f574357801902c7 (diff) |
loplugin:sequenceloop also check for B2DPolyPolygon
which has the same problem
Change-Id: I98f9924626f26739e91d6a9d21e4276473ea314d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120620
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/gdi/lineinfo.cxx')
-rw-r--r-- | vcl/source/gdi/lineinfo.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/lineinfo.cxx b/vcl/source/gdi/lineinfo.cxx index 345eeb21a678..27f4e408f95f 100644 --- a/vcl/source/gdi/lineinfo.cxx +++ b/vcl/source/gdi/lineinfo.cxx @@ -238,7 +238,7 @@ void LineInfo::applyToB2DPolyPolygon( { basegfx::B2DPolyPolygon aResult; - for(auto const& rPolygon : io_rLinePolyPolygon) + for(auto const& rPolygon : std::as_const(io_rLinePolyPolygon)) { basegfx::B2DPolyPolygon aLineTarget; basegfx::utils::applyLineDashing( @@ -257,7 +257,7 @@ void LineInfo::applyToB2DPolyPolygon( const double fHalfLineWidth((GetWidth() * 0.5) + 0.5); - for(auto const& rPolygon : io_rLinePolyPolygon) + for(auto const& rPolygon : std::as_const(io_rLinePolyPolygon)) { o_rFillPolyPolygon.append(basegfx::utils::createAreaGeometry( rPolygon, |