1 files changed, 2 insertions, 2 deletions
diff --git a/src/CommunitiesList.cpp b/src/CommunitiesList.cpp
index 9af2ea9b..010200c8 100644
--- a/src/CommunitiesList.cpp
+++ b/src/CommunitiesList.cpp
@@ -104,7 +104,7 @@ CommunitiesList::setTagsForRoom(const QString &room_id, const std::vector<std::s
}
// insert or remove the room from the tag as appropriate
std::string current_tag =
- it->first.right(it->first.size() - strlen("tag:")).toStdString();
+ it->first.right(static_cast<int>(it->first.size() - strlen("tag:"))).toStdString();
if (std::find(tags.begin(), tags.end(), current_tag) != tags.end()) {
// the room has this tag
it->second->addRoom(room_id);
@@ -246,7 +246,7 @@ CommunitiesList::fetchCommunityAvatar(const QString &id, const QString &avatarUr
cache::saveImage(opts.mxc_url, res);
- auto data = QByteArray(res.data(), res.size());
+ auto data = QByteArray(res.data(), (int)res.size());
QPixmap pix;
pix.loadFromData(data);
|