diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2020-01-17 14:07:05 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2020-01-17 14:07:05 +0100 |
commit | fde755414529f2d700317063bbf55242aa24dde0 (patch) | |
tree | 80f8867e1ba599225ca69e4cbebe3af9e5a75e23 | |
parent | 305b967cd78616610f17f49317da551e34cad6b2 (diff) |
maybe fix qt 5.13
-rw-r--r-- | compat/qhash.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compat/qhash.hpp b/compat/qhash.hpp index 7d0f27ba..b92e4e55 100644 --- a/compat/qhash.hpp +++ b/compat/qhash.hpp @@ -6,10 +6,12 @@ #if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) +#include <cstdlib> + namespace std { template<> struct hash<QString> { - unsigned operator()(const QString& value) const + std::size_t operator()(const QString& value) const noexcept { return qHash(value); } |