diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-10-26 01:10:35 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-10-26 01:10:35 +0200 |
commit | b28fa86e6ab633b2d3d9bfdb4642c661ff8c45fc (patch) | |
tree | e3500273bcd79fc9e6389e8dcc626607a2677678 /src/timeline/CommunitiesModel.cpp | |
parent | Merge pull request #1215 from foxB612/fix-thumbnail-size (diff) | |
download | nheko-b28fa86e6ab633b2d3d9bfdb4642c661ff8c45fc.tar.xz |
Enable -Wconversion
Diffstat (limited to 'src/timeline/CommunitiesModel.cpp')
-rw-r--r-- | src/timeline/CommunitiesModel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/timeline/CommunitiesModel.cpp b/src/timeline/CommunitiesModel.cpp index ef023cee..96d090f7 100644 --- a/src/timeline/CommunitiesModel.cpp +++ b/src/timeline/CommunitiesModel.cpp @@ -153,7 +153,8 @@ CommunitiesModel::data(const QModelIndex &index, int role) const int count = 0; auto end = spaceOrder_.lastChild(index.row() - 2); for (int i = index.row() - 2; i <= end; i++) - count += spaceOrder_.tree[i].notificationCounts.notification_count; + count += + static_cast<int>(spaceOrder_.tree[i].notificationCounts.notification_count); return count; } case CommunitiesModel::Roles::HasLoudNotification: { |