diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-24 17:42:05 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-24 19:48:36 +0900 |
commit | e10927767faaf7a03a772ab97fe6292907cc4b4b (patch) | |
tree | f0ee020cafc117817d5931b7db8853a91cc9bea6 /avatar.h | |
parent | e09c740c85e2e9a861e84f706680ce1ec662a4bc (diff) | |
download | libquotient-e10927767faaf7a03a772ab97fe6292907cc4b4b.tar.gz libquotient-e10927767faaf7a03a772ab97fe6292907cc4b4b.zip |
User: store avatars on the heap; use two containers to store avatars-to-rooms mapping
Because they are uncopiable, unlike pointers to them; and a combination of QHash of avatars and a QMultiHash of rooms is much more convenient than a std::vector<std::pair<...>>.
Diffstat (limited to 'avatar.h')
-rw-r--r-- | avatar.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -32,7 +32,7 @@ namespace QMatrixClient { public: explicit Avatar(QIcon defaultIcon = {}); - Avatar(QUrl url, QIcon defaultIcon = {}); + explicit Avatar(QUrl url, QIcon defaultIcon = {}); Avatar(Avatar&&); ~Avatar(); Avatar& operator=(Avatar&&); |