forked from qt-creator/qt-creator
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:
@@ -2082,7 +2082,7 @@ void WatchHandler::cleanup()
|
||||
{
|
||||
m_model->m_expandedINames.clear();
|
||||
theWatcherNames.remove(QString());
|
||||
for (const QString &exp : theTemporaryWatchers)
|
||||
for (const QString &exp : qAsConst(theTemporaryWatchers))
|
||||
theWatcherNames.remove(exp);
|
||||
theTemporaryWatchers.clear();
|
||||
saveWatchers();
|
||||
|
||||
Reference in New Issue
Block a user