Skip to content

Commit 7a187a2

Browse files
committed
Fix zero flag construction
1 parent 74734ea commit 7a187a2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/club.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ QVariant ClubDB::headerData(int section, Qt::Orientation orientation, int role)
333333
Qt::ItemFlags ClubDB::flags(const QModelIndex& index) const
334334
{
335335
if (!index.isValid())
336-
return 0;
336+
return {};
337337

338338
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
339339
}

src/location.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ int LocationDB::columnCount(const QModelIndex& parent) const
159159
Qt::ItemFlags LocationDB::flags(const QModelIndex& index) const
160160
{
161161
if (!index.isValid())
162-
return 0;
162+
return {};
163163

164164
return Qt::ItemIsEditable | Qt::ItemIsEnabled | Qt::ItemIsSelectable;
165165
}

src/resultList.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ QVariant ResultList::headerData(int section, Qt::Orientation orientation, int ro
644644
Qt::ItemFlags ResultList::flags(const QModelIndex& index) const
645645
{
646646
if (!index.isValid())
647-
return 0;
647+
return {};
648648

649649
// TODO!
650650
return /*Qt::ItemIsEditable |*/ Qt::ItemIsEnabled | Qt::ItemIsSelectable;
@@ -957,7 +957,7 @@ Qt::ItemFlags ResultsTree::GroupSortProxyModel::flags(const QModelIndex& index)
957957
if (index.parent() == QModelIndex())
958958
{
959959
if (!index.isValid())
960-
return 0;
960+
return {};
961961

962962
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
963963
}

src/runner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ QVariant RunnerDB::headerData(int section, Qt::Orientation orientation, int role
521521
Qt::ItemFlags RunnerDB::flags(const QModelIndex& index) const
522522
{
523523
if (!index.isValid())
524-
return 0;
524+
return {};
525525

526526
if (index.column() == 4) // clubs
527527
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;

0 commit comments

Comments
 (0)