Don't use shared pointers for cache
This commit is contained in:
parent
4c4ea557b3
commit
ebed87ea57
17 changed files with 86 additions and 96 deletions
|
|
@ -4,7 +4,6 @@
|
|||
#include <QListWidget>
|
||||
|
||||
class Avatar;
|
||||
class Cache;
|
||||
class FlatButton;
|
||||
class QHBoxLayout;
|
||||
class QLabel;
|
||||
|
|
@ -38,7 +37,7 @@ class MemberList : public QFrame
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
MemberList(const QString &room_id, QSharedPointer<Cache> cache, QWidget *parent = nullptr);
|
||||
MemberList(const QString &room_id, QWidget *parent = nullptr);
|
||||
|
||||
public slots:
|
||||
void addUsers(const std::vector<RoomMember> &users);
|
||||
|
|
@ -57,7 +56,6 @@ private:
|
|||
QString room_id_;
|
||||
QLabel *topLabel_;
|
||||
QListWidget *list_;
|
||||
QSharedPointer<Cache> cache_;
|
||||
FlatButton *moreBtn_;
|
||||
};
|
||||
} // dialogs
|
||||
|
|
|
|||
|
|
@ -59,9 +59,7 @@ class RoomSettings : public QFrame
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
RoomSettings(const QString &room_id,
|
||||
QSharedPointer<Cache> cache,
|
||||
QWidget *parent = nullptr);
|
||||
RoomSettings(const QString &room_id, QWidget *parent = nullptr);
|
||||
|
||||
signals:
|
||||
void closing();
|
||||
|
|
@ -74,8 +72,6 @@ private:
|
|||
|
||||
void setAvatar(const QImage &img) { avatarImg_ = img; }
|
||||
|
||||
QSharedPointer<Cache> cache_;
|
||||
|
||||
// Button section
|
||||
FlatButton *saveBtn_;
|
||||
FlatButton *cancelBtn_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue