Use less nullptr for empty flags

Change-Id: Ic4eafdc8f204a432a752a97593380609a408a7de
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2020-01-21 13:53:15 +01:00
parent c9a4176b2f
commit 811f4a38da
12 changed files with 14 additions and 14 deletions

View File

@@ -1178,7 +1178,7 @@ bool WatchModel::setData(const QModelIndex &idx, const QVariant &value, int role
Qt::ItemFlags WatchModel::flags(const QModelIndex &idx) const
{
if (!idx.isValid())
return nullptr;
return {};
const WatchItem *item = nonRootItemForIndex(idx);
if (!item)