summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej@ahunt.org>2015-11-21 08:14:05 -0800
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-07-20 01:25:51 -0400
commit5e24489d2f1016b5cf83cacb1f4a85d3777c4cc4 (patch)
treee75007673501ef74f52f9fc4f58fc3588a4c0b0e /desktop/source
parentcfe9fcbedd38e62d16c0a1bfff90c040efd6c1d1 (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> (cherry picked from commit 9d0b06e9f728d01a2d2908e1e56cb4220cd414d5)
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/deployment/registry/component/dp_component.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/deployment/registry/component/dp_component.cxx b/desktop/source/deployment/registry/component/dp_component.cxx
index ae7192ca20ae..f1859f92e236 100644
--- a/desktop/source/deployment/registry/component/dp_component.cxx
+++ b/desktop/source/deployment/registry/component/dp_component.cxx
@@ -1106,7 +1106,7 @@ Reference<XComponentContext> raise_uno_process(
}
catch (...) {
OUString sMsg = "error starting process: " + url;
- for(auto arg : args)
+ for(const auto& arg : args)
sMsg += " " + arg;
throw uno::RuntimeException(sMsg);
}