summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-12-29 06:11:51 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-12-29 06:11:51 +0100
commit7b4d9859006ac8de87d70edd18278b3b9dfa065a (patch)
treee1f570c222b8c5f18e45324c8ece17839beb3758 /compat
parentb8e7865a017363e9d3876539936a6f73310a99d9 (diff)
fix std::hash<QString>
Fixes #1015
Diffstat (limited to 'compat')
-rw-r--r--compat/qhash.hpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/compat/qhash.hpp b/compat/qhash.hpp
index c2be4fc5..e38ee056 100644
--- a/compat/qhash.hpp
+++ b/compat/qhash.hpp
@@ -1,14 +1,6 @@
#pragma once
+#include <functional>
#include <QString>
#include <QHashFunctions>
-namespace std {
-template<> struct hash<QString>
-{
- unsigned operator()(const QString& value) const
- {
- return qHash(value);
- }
-};
-}