DAP: Fix auto copy

Coverity-Id: 1568078
Change-Id: I915f947dee43b78248dcb29fe375954b43344920
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-11-02 14:54:22 +01:00
parent d62309bbb2
commit 43f99cb53b

View File

@@ -812,7 +812,7 @@ void DapEngine::refreshLocals(const QJsonArray &variables)
if (currentItem && currentItem->iname.startsWith("watch")) if (currentItem && currentItem->iname.startsWith("watch"))
currentItem->removeChildren(); currentItem->removeChildren();
for (auto variable : variables) { for (const QJsonValueConstRef &variable : variables) {
WatchItem *item = new WatchItem; WatchItem *item = new WatchItem;
const QString name = variable.toObject().value("name").toString(); const QString name = variable.toObject().value("name").toString();