Fix MSVC warnings: Missing return value, cast type

Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
Michael Schuster 2020-03-03 02:08:37 +01:00
parent 7378ae6a7f
commit aab735a595
No known key found for this signature in database
GPG key ID: 00819E3BF4177B28
2 changed files with 3 additions and 1 deletions

View file

@ -298,7 +298,7 @@ void ActivityListModel::slotActivitiesReceived(const QJsonDocument &json, int st
void ActivityListModel::slotIconDownloaded(QByteArray iconData)
{
for (size_t i = 0; i < _activityLists.count(); i++) {
for (auto i = 0; i < _activityLists.count(); i++) {
if (_activityLists[i]._id == sender()->property("activityId").toLongLong()) {
_activityLists[i]._iconData = iconData;
}

View file

@ -406,6 +406,8 @@ Folder *User::getFolder()
return folder;
}
}
return nullptr;
}
ActivityListModel *User::getActivityModel()