diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-01-30 11:39:06 -0700 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-01-30 11:39:06 -0700 |
commit | 992332adf71b263fa2d61544a1c28f7b7e87fbc0 (patch) | |
tree | 0efe84872ba0a0ca4e9e534b7a3a7e07a6a3aa98 /src/AvatarProvider.cc | |
parent | 86aa409c1f27a7cfed181934a13e8c4a7b016df1 (diff) |
Update user avatars in place
Diffstat (limited to 'src/AvatarProvider.cc')
-rw-r--r-- | src/AvatarProvider.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/AvatarProvider.cc b/src/AvatarProvider.cc index 1cdf03ac..21253ba7 100644 --- a/src/AvatarProvider.cc +++ b/src/AvatarProvider.cc @@ -42,10 +42,8 @@ AvatarProvider::updateAvatar(const QString &uid, const QImage &img) toBeResolved_.erase(uid); } - auto avatarData = avatars_[uid]; - avatarData.img = img; - - avatars_.emplace(uid, avatarData); + auto avatarData = &avatars_[uid]; + avatarData->img = img; } void |