summaryrefslogtreecommitdiff
path: root/canvas
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 /canvas
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 'canvas')
-rw-r--r--canvas/source/vcl/spritecanvashelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/canvas/source/vcl/spritecanvashelper.cxx b/canvas/source/vcl/spritecanvashelper.cxx
index bba2e051bb33..892b241c7281 100644
--- a/canvas/source/vcl/spritecanvashelper.cxx
+++ b/canvas/source/vcl/spritecanvashelper.cxx
@@ -375,7 +375,7 @@ namespace vclcanvas
// opaque sprite content)
// repaint all affected sprites directly to output device
- for( const auto rComponent : rUpdateArea.maComponentList )
+ for( const auto& rComponent : rUpdateArea.maComponentList )
{
const ::canvas::Sprite::Reference& rSprite( rComponent.second.getSprite() );