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:
hjk
2018-03-08 15:13:42 +01:00
parent 2626e1629f
commit c050d916ce
3 changed files with 7 additions and 14 deletions

View File

@@ -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) {