aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggermainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/debugger/debuggermainwindow.cpp')
-rw-r--r--src/plugins/debugger/debuggermainwindow.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/debugger/debuggermainwindow.cpp b/src/plugins/debugger/debuggermainwindow.cpp
index 9ccef503e71..5d066ba3f4e 100644
--- a/src/plugins/debugger/debuggermainwindow.cpp
+++ b/src/plugins/debugger/debuggermainwindow.cpp
@@ -500,8 +500,10 @@ void DebuggerMainWindow::savePersistentSettings() const
QVariantHash states;
qCDebug(perspectivesLog) << "PERSPECTIVE TYPES: " << d->m_lastTypePerspectiveStates.keys();
- for (const QString &type : d->m_lastTypePerspectiveStates.keys()) {
- const PerspectiveState state = d->m_lastTypePerspectiveStates.value(type);
+ for (auto it = d->m_lastTypePerspectiveStates.cbegin();
+ it != d->m_lastTypePerspectiveStates.cend(); ++it) {
+ const QString &type = it.key();
+ const PerspectiveState &state = it.value();
qCDebug(perspectivesLog) << "PERSPECTIVE TYPE " << type
<< " HAS STATE: " << !state.mainWindowState.isEmpty();
QTC_ASSERT(!state.mainWindowState.isEmpty(), continue);