diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-15 10:58:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-15 12:43:21 +0200 |
commit | 3a1a448ac4a04137705ea0aaf0163358fd2e5549 (patch) | |
tree | 0a7eeeebda959b1b8e7e1af99453c3f8b0541852 /slideshow | |
parent | 88a6ac9f75a4375b72111af5a3e004bef4226455 (diff) |
loplugin:constvars
Change-Id: I9b35d6333afa6b305bf73fc55a7e60c8365674e9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122134
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/box2dtools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slideshow/source/engine/box2dtools.cxx b/slideshow/source/engine/box2dtools.cxx index 8aeb46ac318f..cb365165a274 100644 --- a/slideshow/source/engine/box2dtools.cxx +++ b/slideshow/source/engine/box2dtools.cxx @@ -743,7 +743,7 @@ Box2DBodySharedPtr box2DWorld::createStaticBody(const slideshow::internal::Shape { basegfx::triangulator::B2DTriangleVector aTriangleVector; // iterate over the polygons of the shape and create representations for them - for (auto& rPolygon : aPolyPolygon) + for (const auto& rPolygon : std::as_const(aPolyPolygon)) { // if the polygon is closed it will be represented by triangles if (rPolygon.isClosed()) |