aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggeractions.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <[email protected]>2014-09-11 22:22:51 +0300
committerhjk <[email protected]>2014-09-12 13:58:47 +0200
commitad957282c84d74919cf63565f44966b1c4b1157d (patch)
tree26403dd36b4f2d6d1ae26d88d7c12a549354cd2c /src/plugins/debugger/debuggeractions.cpp
parent50ad2a4d99928a1cc8f1ac957ba734324a65b464 (diff)
Debugger: Cleanup
Diffstat (limited to 'src/plugins/debugger/debuggeractions.cpp')
-rw-r--r--src/plugins/debugger/debuggeractions.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/debugger/debuggeractions.cpp b/src/plugins/debugger/debuggeractions.cpp
index 4c06e717658..d39f3117113 100644
--- a/src/plugins/debugger/debuggeractions.cpp
+++ b/src/plugins/debugger/debuggeractions.cpp
@@ -59,8 +59,9 @@ void GlobalDebuggerOptions::toSettings() const
const QString sourcePathMappingSourceKey = QLatin1String(sourcePathMappingSourceKeyC);
const QString sourcePathMappingTargetKey = QLatin1String(sourcePathMappingTargetKeyC);
int i = 0;
- const SourcePathMap::const_iterator cend = sourcePathMap.constEnd();
- for (SourcePathMap::const_iterator it = sourcePathMap.constBegin(); it != cend; ++it, ++i) {
+ for (auto it = sourcePathMap.constBegin(), cend = sourcePathMap.constEnd();
+ it != cend;
+ ++it, ++i) {
s->setArrayIndex(i);
s->setValue(sourcePathMappingSourceKey, it.key());
s->setValue(sourcePathMappingTargetKey, it.value());