aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/commonoptionspage.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-07-25 17:27:58 +0200
committerhjk <hjk@qt.io>2019-07-26 10:13:27 +0000
commit7705fbb70118ffaefe14ca3985c12ed5955c7091 (patch)
treec0debe3a38dd958fdedbd2dcd8f19dde39495d09 /src/plugins/debugger/commonoptionspage.cpp
parent76b6a36bb1b74d0496bdd5daad8dbd86b23a0f64 (diff)
Debugger: Code cosmetics
Remove uses of foreach, ... Change-Id: I3997d4dffc63d58c386c70b08063ecb894ef1abb Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: David Schulz <david.schulz@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 0aeee7f2d74..de39258df10 100644
--- a/src/plugins/debugger/commonoptionspage.cpp
+++ b/src/plugins/debugger/commonoptionspage.cpp
@@ -248,7 +248,7 @@ QWidget *CommonOptionsPage::widget()
}
SourcePathMap allPathMap = m_options->sourcePathMap;
- foreach (auto regExpMap, m_options->sourcePathRegExpMap)
+ for (auto regExpMap : qAsConst(m_options->sourcePathRegExpMap))
allPathMap.insert(regExpMap.first.pattern(), regExpMap.second);
m_sourceMappingWidget->setSourcePathMap(allPathMap);
}