From 90940a774eab876c38d5cef981b4be5bae67a462 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 8 Jul 2018 23:20:56 +0200 Subject: modernize only --- compat/qhash.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 compat/qhash.hpp (limited to 'compat/qhash.hpp') diff --git a/compat/qhash.hpp b/compat/qhash.hpp new file mode 100644 index 00000000..a9685007 --- /dev/null +++ b/compat/qhash.hpp @@ -0,0 +1,15 @@ +#pragma once + +#include +#include +#include + +namespace std { +template<> struct hash +{ + inline unsigned operator()(const QString& value) const + { + return qHash(value); + } +}; +} -- cgit v1.2.3