From e10927767faaf7a03a772ab97fe6292907cc4b4b Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sat, 24 Feb 2018 17:42:05 +0900 Subject: 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>. --- avatar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'avatar.h') 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&&); -- cgit v1.2.3