diff options
Diffstat (limited to 'src/AvatarProvider.cpp')
-rw-r--r-- | src/AvatarProvider.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/AvatarProvider.cpp b/src/AvatarProvider.cpp index 1834e040..f64f6859 100644 --- a/src/AvatarProvider.cpp +++ b/src/AvatarProvider.cpp @@ -35,7 +35,7 @@ resolve(const QString &avatarUrl, int size, QObject *receiver, AvatarCallback ca auto data = cache::image(cacheKey); if (!data.isNull()) { - pixmap = QPixmap::fromImage(utils::readImage(&data)); + pixmap = QPixmap::fromImage(utils::readImage(data)); avatar_cache.insert(cacheKey, pixmap); callback(pixmap); return; @@ -46,7 +46,7 @@ resolve(const QString &avatarUrl, int size, QObject *receiver, AvatarCallback ca &AvatarProxy::avatarDownloaded, receiver, [callback, cacheKey](QByteArray data) { - QPixmap pm = QPixmap::fromImage(utils::readImage(&data)); + QPixmap pm = QPixmap::fromImage(utils::readImage(data)); avatar_cache.insert(cacheKey, pm); callback(pm); }); |