From 9d0b06e9f728d01a2d2908e1e56cb4220cd414d5 Mon Sep 17 00:00:00 2001 From: Andrzej Hunt Date: Sat, 21 Nov 2015 08:14:05 -0800 Subject: 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 Reviewed-by: Stephan Bergmann --- canvas/source/vcl/spritecanvashelper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'canvas') 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() ); -- cgit