summaryrefslogtreecommitdiffhomepage
path: root/compat/qhash.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'compat/qhash.hpp')
-rw-r--r--compat/qhash.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/compat/qhash.hpp b/compat/qhash.hpp
index a9685007..ba569285 100644
--- a/compat/qhash.hpp
+++ b/compat/qhash.hpp
@@ -1,13 +1,12 @@
#pragma once
-#include <functional>
#include <QString>
#include <QHashFunctions>
namespace std {
template<> struct hash<QString>
{
- inline unsigned operator()(const QString& value) const
+ constexpr unsigned operator()(const QString& value) const
{
return qHash(value);
}