From 0bb9322a699ccf893167e6427cefb0a2f3f7ee1f Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Tue, 23 Jun 2020 10:01:36 +0400 Subject: [PATCH] Use default constructor for ItemFlags --- apps/opencs/model/world/idtree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/opencs/model/world/idtree.cpp b/apps/opencs/model/world/idtree.cpp index 7f43a9201..a8dfacb01 100644 --- a/apps/opencs/model/world/idtree.cpp +++ b/apps/opencs/model/world/idtree.cpp @@ -116,7 +116,7 @@ bool CSMWorld::IdTree::setData (const QModelIndex &index, const QVariant &value, Qt::ItemFlags CSMWorld::IdTree::flags (const QModelIndex & index) const { if (!index.isValid()) - return 0; + return Qt::ItemFlags(); if (index.internalId() != 0) {