diff --git a/src/AvatarProvider.cpp b/src/AvatarProvider.cpp index 277a4030..ec745c04 100644 --- a/src/AvatarProvider.cpp +++ b/src/AvatarProvider.cpp @@ -42,7 +42,7 @@ resolve(const QString &avatarUrl, int size, QObject *receiver, AvatarCallback ca return; QPixmap pixmap; - if (avatar_cache.find(cacheKey, pixmap)) { + if (avatar_cache.find(cacheKey, &pixmap)) { nhlog::net()->info("cached pixmap {}", avatarUrl.toStdString()); callback(pixmap); return; diff --git a/src/ui/Avatar.h b/src/ui/Avatar.h index 0f8678c7..a643c8c4 100644 --- a/src/ui/Avatar.h +++ b/src/ui/Avatar.h @@ -22,7 +22,6 @@ public: void setImage(const QString &avatar_url); void setImage(const QString &room, const QString &user); void setLetter(const QString &letter); - // void setSize(int size); void setTextColor(const QColor &color); QColor backgroundColor() const;