Debugger: Fix compile with Qt6.2

Amends 43f99cb53b.

Change-Id: Ia28b129f761e8cfe6dd3a908ccfcf50d043d1639
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Christian Stenger
2023-11-09 06:55:30 +01:00
committed by Marcus Tillmanns
parent 6e1d7fc961
commit 4436e96f91

View File

@@ -815,7 +815,7 @@ void DapEngine::refreshLocals(const QJsonArray &variables)
if (currentItem && currentItem->iname.startsWith("watch")) if (currentItem && currentItem->iname.startsWith("watch"))
currentItem->removeChildren(); currentItem->removeChildren();
for (const QJsonValueConstRef &variable : variables) { for (const auto &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();