diff options
Diffstat (limited to 'compat/qhash.hpp')
-rw-r--r-- | compat/qhash.hpp | 3 |
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); } |