From a744ea642ecf8c596e038840a3cb40630a77f2d6 Mon Sep 17 00:00:00 2001 From: Martchus Date: Mon, 2 Mar 2020 16:14:53 +0100 Subject: [PATCH] Remove hash implementation from settings.cpp --- widgets/settings/settings.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/widgets/settings/settings.cpp b/widgets/settings/settings.cpp index 521f3d2..64eaa02 100644 --- a/widgets/settings/settings.cpp +++ b/widgets/settings/settings.cpp @@ -3,6 +3,7 @@ #include "../misc/syncthingkiller.h" #include "../misc/syncthinglauncher.h" +#include "../../connector/qstringhash.h" #include "../../connector/syncthingconnection.h" #include "../../connector/syncthingnotifier.h" #include "../../connector/syncthingprocess.h" @@ -33,18 +34,6 @@ using namespace std; using namespace Data; using namespace QtUtilities; -#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0)) -namespace std { - -template <> struct hash { - std::size_t operator()(const QString &str) const - { - return qHash(str); - } -}; -} // namespace std -#endif - namespace Settings { /*!