1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 20:55:20 +03:00
aports/testing/pegasus-frontend/qt-5-14-compatibility.patch
2020-08-18 10:31:17 +00:00

32 lines
963 B
Diff

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 {