Add missing qHash overload for INTEGRITY

Fixes build issue "no instance of overloaded function "qHash" matches
the argument list" on INTEGRITY

Pick-to: 6.2
Change-Id: Ia1273587840d55199846dc64d487d194f9a4d565
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
Kimmo Ollila 2021-06-09 14:34:24 +03:00
parent 1591a95987
commit 56ed35bd02
2 changed files with 12 additions and 0 deletions

View File

@ -558,6 +558,13 @@ bool operator==(const QShaderVersion &lhs, const QShaderVersion &rhs) noexcept
return lhs.version() == rhs.version() && lhs.flags() == rhs.flags();
}
#ifdef Q_OS_INTEGRITY
size_t qHash(const QShaderVersion &s, size_t seed) noexcept
{
return qHashMulti(seed, s.version(), s.flags());
}
#endif
/*!
\internal
\fn bool operator!=(const QShaderVersion &lhs, const QShaderVersion &rhs)

View File

@ -59,6 +59,11 @@ QT_BEGIN_NAMESPACE
struct QShaderPrivate;
class QShaderKey;
#ifdef Q_OS_INTEGRITY
class QShaderVersion;
size_t qHash(const QShaderVersion &, size_t = 0) noexcept;
#endif
class Q_GUI_EXPORT QShaderVersion
{
public: