forked from qt-creator/qt-creator
Debugger: Use TypedTreeItem's typed parent ability for WatchItems
Less "user code". Change-Id: Idf4e0a950761bd0184f2844c45415d5bdb8cd51a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -829,7 +829,7 @@ static QString displayName(const WatchItem *item)
|
||||
{
|
||||
QString result;
|
||||
|
||||
const WatchItem *p = item->parentItem();
|
||||
const WatchItem *p = item->parent();
|
||||
if (!p)
|
||||
return result;
|
||||
if (item->arrayIndex >= 0) {
|
||||
|
||||
Reference in New Issue
Block a user