diff options
author | Orgad Shaneh <[email protected]> | 2014-09-11 22:22:51 +0300 |
---|---|---|
committer | hjk <[email protected]> | 2014-09-12 13:58:47 +0200 |
commit | ad957282c84d74919cf63565f44966b1c4b1157d (patch) | |
tree | 26403dd36b4f2d6d1ae26d88d7c12a549354cd2c /src/plugins/debugger/debuggeractions.cpp | |
parent | 50ad2a4d99928a1cc8f1ac957ba734324a65b464 (diff) |
Debugger: Cleanup
Change-Id: Iaf7a3d69d920f8096763e2d8033df2d6371683a7
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggeractions.cpp')
-rw-r--r-- | src/plugins/debugger/debuggeractions.cpp | 5 |
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()); |