Debugger: Use qAsConst with non-const Qt containers in range-loops

Change-Id: I7bd27f8317b62fe448e037d5a25e78b4c88c648d
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2021-02-16 23:09:02 +01:00
parent dfa24f09ad
commit b3686d410d
6 changed files with 9 additions and 9 deletions

View File

@@ -1777,7 +1777,7 @@ void DebuggerPluginPrivate::attachToQmlPort()
void DebuggerPluginPrivate::runScheduled()
{
for (DebuggerRunTool *debugger : m_scheduledStarts)
for (DebuggerRunTool *debugger : qAsConst(m_scheduledStarts))
debugger->startRunControl();
}