Fix usage of deprecated find

This commit is contained in:
Nicolas Werner 2019-08-28 08:21:07 +02:00
parent 8b5515d5c1
commit c5f0c3221f
2 changed files with 1 additions and 2 deletions

View file

@ -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;

View file

@ -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;