Address first part of review comments

This commit is contained in:
FearlessTobi 2022-07-15 19:45:35 +02:00
parent f433ce567e
commit 846c50dd42
16 changed files with 239 additions and 133 deletions

View file

@ -390,7 +390,7 @@ void ChatRoom::SetPlayerList(const Network::RoomMember::MemberList& member_list)
return;
QPixmap pixmap;
if (!pixmap.loadFromData(reinterpret_cast<const u8*>(result.data()),
result.size()))
static_cast<uint>(result.size())))
return;
icon_cache[avatar_url] =
pixmap.scaled(48, 48, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);