aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/commonoptionspage.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2020-06-11 16:53:11 +0200
committerAlessandro Portale <alessandro.portale@qt.io>2020-06-15 05:58:46 +0000
commit0be309bcf1b36b06b4ca91172100d9f9d926a1a1 (patch)
treebfc634258190e5b2b771cca575693d8af9b00a0b /src/plugins/debugger/commonoptionspage.cpp
parentcbac89b0fd69eed5750933a325618503a7c1e03e (diff)
Various places: performance-for-range-copy
Change-Id: I475990d32a5211d31a77782667a2dfedba134137 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger/commonoptionspage.cpp')
-rw-r--r--src/plugins/debugger/commonoptionspage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/commonoptionspage.cpp b/src/plugins/debugger/commonoptionspage.cpp
index fc0f22e1a47..8bd42ed612f 100644
--- a/src/plugins/debugger/commonoptionspage.cpp
+++ b/src/plugins/debugger/commonoptionspage.cpp
@@ -211,7 +211,7 @@ public:
GlobalDebuggerOptions *options = Internal::globalDebuggerOptions();
SourcePathMap allPathMap = options->sourcePathMap;
- for (auto regExpMap : qAsConst(options->sourcePathRegExpMap))
+ for (const auto &regExpMap : qAsConst(options->sourcePathRegExpMap))
allPathMap.insert(regExpMap.first.pattern(), regExpMap.second);
m_sourceMappingWidget->setSourcePathMap(allPathMap);
}