From 283a9d0b2210d9e8e61c1cce4cced8b9359782a9 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 22 Mar 2025 00:02:13 +0100 Subject: [PATCH] Build fixes for Qt4 --- src/tl/tl/tlHash.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/tl/tl/tlHash.h b/src/tl/tl/tlHash.h index 72535c511..1c6a55670 100644 --- a/src/tl/tl/tlHash.h +++ b/src/tl/tl/tlHash.h @@ -354,6 +354,15 @@ namespace std * @brief Generic hash for QString */ + template <> + struct hash + { + size_t operator() (const QChar &o) const + { + return hfunc (o.unicode ()); + } + }; + template <> size_t hfunc (const QString &o, size_t h) {