Tidy up qgraphicsview: use nullptr more
Change-Id: Ie4d2b64175cba12e884260455814774bce8c8787 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
6327e3679c
commit
9a198e23d9
@ -2343,7 +2343,7 @@ QGraphicsItem *QGraphicsView::itemAt(const QPoint &pos) const
|
||||
if (!d->scene)
|
||||
return nullptr;
|
||||
const QList<QGraphicsItem *> itemsAtPos = items(pos);
|
||||
return itemsAtPos.isEmpty() ? 0 : itemsAtPos.first();
|
||||
return itemsAtPos.isEmpty() ? nullptr : itemsAtPos.first();
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
x
Reference in New Issue
Block a user