summaryrefslogtreecommitdiff
path: root/comphelper
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 /comphelper
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 'comphelper')
-rw-r--r--comphelper/source/misc/accessiblewrapper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/misc/accessiblewrapper.cxx b/comphelper/source/misc/accessiblewrapper.cxx
index 5e5262156e0d..2bb538fa5cbd 100644
--- a/comphelper/source/misc/accessiblewrapper.cxx
+++ b/comphelper/source/misc/accessiblewrapper.cxx
@@ -137,7 +137,7 @@ namespace comphelper
void OWrappedAccessibleChildrenManager::dispose()
{
// dispose our children
- for( const auto rChild : m_aChildrenMap )
+ for( const auto& rChild : m_aChildrenMap )
{
Reference< XComponent > xComp( rChild.first, UNO_QUERY );
if( xComp.is() )