mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Fix usage of deprecated find
This commit is contained in:
parent
8b5515d5c1
commit
c5f0c3221f
2 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue