summary refs log tree commit diff
path: root/include/AvatarProvider.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-08 20:30:09 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-08 20:30:09 +0300
commitebed87ea5730f9a49d6cf6d03a2a3a8ef7e2aa52 (patch)
treeb022e968f92dee9c52e73b07de7fadd304cc5299 /include/AvatarProvider.h
parentReplace shared pointers of MatrixClient with a single instance (diff)
downloadnheko-ebed87ea5730f9a49d6cf6d03a2a3a8ef7e2aa52.tar.xz
Don't use shared pointers for cache
Diffstat (limited to 'include/AvatarProvider.h')
-rw-r--r--include/AvatarProvider.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/AvatarProvider.h b/include/AvatarProvider.h

index af13a577..ce82f2aa 100644 --- a/include/AvatarProvider.h +++ b/include/AvatarProvider.h
@@ -17,27 +17,18 @@ #pragma once -#include <QHash> #include <QImage> -#include <QSharedPointer> #include <functional> -class TimelineItem; -class Cache; - class AvatarProvider : public QObject { Q_OBJECT public: - static void init(QSharedPointer<Cache> cache) { cache_ = cache; } //! The callback is called with the downloaded avatar for the given user //! or the avatar is downloaded first and then saved for re-use. static void resolve(const QString &room_id, const QString &userId, QObject *receiver, std::function<void(QImage)> callback); - -private: - static QSharedPointer<Cache> cache_; };