summary refs log tree commit diff
path: root/src/CommunitiesList.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-12-25 05:59:18 +0100
committerGitHub <noreply@github.com>2020-12-25 05:59:18 +0100
commitea5f6ca0f41b6dd91d4d01d3f575f7688f50d837 (patch)
tree09280bb5f26a818eab462a2b42680a757bb2bc5c /src/CommunitiesList.cpp
parentMerge pull request #323 from LorenDB/newProfile (diff)
parentlint (diff)
downloadnheko-ea5f6ca0f41b6dd91d4d01d3f575f7688f50d837.tar.xz
Merge pull request #358 from Nheko-Reborn/windows-fixes
Windows fixes
Diffstat (limited to 'src/CommunitiesList.cpp')
-rw-r--r--src/CommunitiesList.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/CommunitiesList.cpp b/src/CommunitiesList.cpp

index 9af2ea9b..f3af9932 100644 --- a/src/CommunitiesList.cpp +++ b/src/CommunitiesList.cpp
@@ -104,7 +104,8 @@ 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 +247,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);