aboutsummaryrefslogtreecommitdiff
path: root/avatar.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-24 17:42:05 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-24 19:48:36 +0900
commite10927767faaf7a03a772ab97fe6292907cc4b4b (patch)
treef0ee020cafc117817d5931b7db8853a91cc9bea6 /avatar.h
parente09c740c85e2e9a861e84f706680ce1ec662a4bc (diff)
downloadlibquotient-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/avatar.h b/avatar.h
index ecd5bc52..0166ae9e 100644
--- a/avatar.h
+++ b/avatar.h
@@ -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&&);