diff options
author | Alexey Rochev | 2020-01-04 03:29:39 +0300 |
---|---|---|
committer | Alexey Rochev | 2020-01-04 03:29:39 +0300 |
commit | 5efd2682dcd7f7c81137377a41a7187c789ec1a4 (patch) | |
tree | d1c831ed7cdebf5fc1ed78be9d6addba07eef5ad /qt-5.14.patch | |
parent | ebbb955c2d924f2c78e37cda362ebe9d674543c3 (diff) | |
download | aur-5efd2682dcd7f7c81137377a41a7187c789ec1a4.tar.gz |
Add patch to fix build with Qt 5.14
Diffstat (limited to 'qt-5.14.patch')
-rw-r--r-- | qt-5.14.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/qt-5.14.patch b/qt-5.14.patch new file mode 100644 index 000000000000..9e8399170204 --- /dev/null +++ b/qt-5.14.patch @@ -0,0 +1,35 @@ +--- a/src/libtremotesf/stdutils.h ++++ b/src/libtremotesf/stdutils.h +@@ -25,26 +25,27 @@ + #include <QHash> + #include <QString> + ++#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) + namespace std { + template<> + class hash<QString> { + public: +- size_t operator()(const QString& string) const ++ size_t operator()(const QString& string) const noexcept(noexcept(qHash(string))) + { +- return qHash(string); ++ return qHash(string, qHash(std::hash<int>{}(0))); + } + }; + + template<> + class hash<QByteArray> { + public: +- size_t operator()(const QByteArray& bytes) const ++ size_t operator()(const QByteArray& bytes) const noexcept(noexcept(qHash(bytes))) + { +- return qHash(bytes); ++ return qHash(bytes, qHash(std::hash<int>{}(0))); + } + }; + } +- ++#endif + + namespace tremotesf + { |