summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej@ahunt.org>2015-11-21 08:14:05 -0800
committerStephan Bergmann <sbergman@redhat.com>2016-01-05 11:06:52 +0000
commit9d0b06e9f728d01a2d2908e1e56cb4220cd414d5 (patch)
tree072f69061281445cf3591f55592b87402dcd14d9 /slideshow
parentd202f851717bb5a8fe5fed98f747a1fd164d3225 (diff)
new loplugin rangedforcopy - use reference in range based for
Inspired by 6e6ae9803796b120e95f6e89575e03c5fd0ed3c2 Change-Id: Ia0f264d3a6bbf076aa5080e3398683e50bc6ef01 Reviewed-on: https://gerrit.libreoffice.org/20190 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/slideshowimpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx
index df655d8760d7..e837fd17f36d 100644
--- a/slideshow/source/engine/slideshowimpl.cxx
+++ b/slideshow/source/engine/slideshowimpl.cxx
@@ -1447,7 +1447,7 @@ void SlideShowImpl::registerUserPaintPolygons( const uno::Reference< lang::XMult
//Get shapes for the slide
css::uno::Reference< css::drawing::XShapes > Shapes(rPoly.first, css::uno::UNO_QUERY);
//Retrieve polygons for one slide
- for( const auto pPolyPoly : aPolygons )
+ for( const auto& pPolyPoly : aPolygons )
{
::basegfx::B2DPolyPolygon b2DPolyPoly = ::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(pPolyPoly->getUNOPolyPolygon());