summary refs log tree commit diff
path: root/include/CommunitiesList.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-08 18:43:56 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-08 18:43:56 +0300
commit4c4ea557b344b035507652cfbc3b616904f958e9 (patch)
treee8e610bfdaebb0ffb3a472f89b699bc3f65852b8 /include/CommunitiesList.h
parentRemove the pseudo deb & rpm packages from releases (diff)
downloadnheko-4c4ea557b344b035507652cfbc3b616904f958e9.tar.xz
Replace shared pointers of MatrixClient with a single instance
Diffstat (limited to 'include/CommunitiesList.h')
-rw-r--r--include/CommunitiesList.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/CommunitiesList.h b/include/CommunitiesList.h

index 81408f58..3299e7c4 100644 --- a/include/CommunitiesList.h +++ b/include/CommunitiesList.h
@@ -6,7 +6,6 @@ #include "CommunitiesListItem.h" #include "Community.h" -#include "MatrixClient.h" #include "ui/Theme.h" class CommunitiesList : public QWidget @@ -14,7 +13,7 @@ class CommunitiesList : public QWidget Q_OBJECT public: - CommunitiesList(QSharedPointer<MatrixClient> client, QWidget *parent = nullptr); + CommunitiesList(QWidget *parent = nullptr); void setCommunities(const std::map<QString, QSharedPointer<Community>> &communities); void clear() { communities_.clear(); } @@ -44,6 +43,4 @@ private: QScrollArea *scrollArea_; std::map<QString, QSharedPointer<CommunitiesListItem>> communities_; - - QSharedPointer<MatrixClient> client_; };