aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-09-12 11:12:37 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-09-12 11:12:37 +0900
commit944653463fe4134c82d85e2d01e2bc0fa43fd727 (patch)
treec035e1b2a0b7b5491cbd21d2313e2157066482d4 /lib/connection.h
parent473686bf953aa8726c7b747935d260be5d9f8ba1 (diff)
downloadlibquotient-944653463fe4134c82d85e2d01e2bc0fa43fd727.tar.gz
libquotient-944653463fe4134c82d85e2d01e2bc0fa43fd727.zip
Introduce HashQ<> and UnorderedMap<>
Invading into std:: is frowned upon, even though legitimate from the C++ standard perspective. Given that it's possible to pass a hash object to unordered_map, it only takes an alias for std::unordered_map to avoid having to specialize std::hash. And besides, a generic compatibility bridge between qHash and std::hash has been long needed. std::hash<QString> in converters.h remains for now; it will be dropped separately when the API files get regenerated to use UnorderedMap.
Diffstat (limited to 'lib/connection.h')
-rw-r--r--lib/connection.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connection.h b/lib/connection.h
index 7e32e5c9..b4b16679 100644
--- a/lib/connection.h
+++ b/lib/connection.h
@@ -124,7 +124,7 @@ public:
using IgnoredUsersList = IgnoredUsersEvent::content_type;
using UsersToDevicesToEvents =
- std::unordered_map<QString, std::unordered_map<QString, const Event&>>;
+ UnorderedMap<QString, UnorderedMap<QString, const Event&>>;
enum RoomVisibility {
PublishRoom,