forked from qt-creator/qt-creator
DAP: Fix coverity warning
Change-Id: Ieb8cc7133b9b2dea4a4d97ec109f82dac28f7950 Coverity-Id: 1568465 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -476,13 +476,14 @@ void DapEngine::updateItem(const QString &iname)
|
||||
void DapEngine::reexpandItems(const QSet<QString> &inames)
|
||||
{
|
||||
QSet<QString> expandedInames = inames;
|
||||
for (auto inames : watchHandler()->watcherNames().keys())
|
||||
const QList<QString> &watcherNames = watchHandler()->watcherNames().keys();
|
||||
for (const QString &inames : watcherNames)
|
||||
expandedInames.insert(watchHandler()->watcherName(inames));
|
||||
|
||||
QList<QString> inamesVector = expandedInames.values().toVector();
|
||||
QList<QString> inamesVector = expandedInames.values();
|
||||
inamesVector.sort();
|
||||
|
||||
for (const QString &iname : inamesVector) {
|
||||
for (const QString &iname : std::as_const(inamesVector)) {
|
||||
if (iname.startsWith("local.") || iname.startsWith("watch."))
|
||||
m_variablesHandler->addVariable(iname, -1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user