summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2020-01-17 14:07:05 +0100
committerStanislaw Halik <sthalik@misaki.pl>2020-01-17 14:07:05 +0100
commitfde755414529f2d700317063bbf55242aa24dde0 (patch)
tree80f8867e1ba599225ca69e4cbebe3af9e5a75e23 /compat
parent305b967cd78616610f17f49317da551e34cad6b2 (diff)
maybe fix qt 5.13
Diffstat (limited to 'compat')
-rw-r--r--compat/qhash.hpp4
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);
}