Fix usage of deprecated find

pull/86/head
Nicolas Werner 5 years ago
parent 8b5515d5c1
commit c5f0c3221f
  1. 2
      src/AvatarProvider.cpp
  2. 1
      src/ui/Avatar.h

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

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

Loading…
Cancel
Save