From 7b4d9859006ac8de87d70edd18278b3b9dfa065a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 29 Dec 2019 06:11:51 +0100 Subject: fix std::hash Fixes #1015 --- compat/qhash.hpp | 10 +--------- dinput/win32-joystick.hpp | 1 - options/bundle.hpp | 2 -- options/connector.hpp | 3 +-- options/group.hpp | 1 - 5 files changed, 2 insertions(+), 15 deletions(-) diff --git a/compat/qhash.hpp b/compat/qhash.hpp index c2be4fc5..e38ee056 100644 --- a/compat/qhash.hpp +++ b/compat/qhash.hpp @@ -1,14 +1,6 @@ #pragma once +#include #include #include -namespace std { -template<> struct hash -{ - unsigned operator()(const QString& value) const - { - return qHash(value); - } -}; -} diff --git a/dinput/win32-joystick.hpp b/dinput/win32-joystick.hpp index 3aa6f315..82590db6 100644 --- a/dinput/win32-joystick.hpp +++ b/dinput/win32-joystick.hpp @@ -9,7 +9,6 @@ #include "dinput.hpp" #include "compat/timer.hpp" -#include "compat/qhash.hpp" #include "export.hpp" #include diff --git a/options/bundle.hpp b/options/bundle.hpp index d99ef06d..ce859bb1 100644 --- a/options/bundle.hpp +++ b/options/bundle.hpp @@ -24,8 +24,6 @@ #include -#include "compat/qhash.hpp" - #include "export.hpp" namespace options::detail { diff --git a/options/connector.hpp b/options/connector.hpp index e22cb20f..ffef2a3d 100644 --- a/options/connector.hpp +++ b/options/connector.hpp @@ -13,8 +13,7 @@ #include #include - -#include "compat/qhash.hpp" +#include #include "export.hpp" diff --git a/options/group.hpp b/options/group.hpp index 93299b6e..751eee34 100644 --- a/options/group.hpp +++ b/options/group.hpp @@ -5,7 +5,6 @@ #include "compat/base-path.hpp" #include "compat/library-path.hpp" #include "compat/macros.hpp" -#include "compat/qhash.hpp" #include "export.hpp" #include -- cgit v1.2.3