blob: 354d44e0ffc3a569f7f87dbfaf8be616e5a73061 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
Upstream: yes
Url: https://github.com/mmatyas/pegasus-frontend/pull/589
From 71c4720ef26fbdd87b43e5c31eb604a92d1ad612 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A1ty=C3=A1s=20Mustoha?= <matyas.mustoha@gmail.com>
Date: Sun, 29 Dec 2019 00:46:15 +0100
Subject: [PATCH] Fixed a compile error when using Qt 5.14, related to string
hashes
---
src/backend/utils/HashMap.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/backend/utils/HashMap.h b/src/backend/utils/HashMap.h
index 3a17305f..21f558e1 100644
--- a/src/backend/utils/HashMap.h
+++ b/src/backend/utils/HashMap.h
@@ -26,6 +26,7 @@
template <typename Key, typename Val, typename Hash = std::hash<Key>>
using HashMap = std::unordered_map<Key, Val, Hash>;
+#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0))
// hash for strings
namespace std {
template<> struct hash<QString> {
@@ -39,6 +40,7 @@ namespace std {
}
};
}
+#endif
// hash for enum classes
struct EnumHash {
|