diff --git a/src/corelib/tools/qhash.h b/src/corelib/tools/qhash.h index 0c322cddcfb..80ed456aceb 100644 --- a/src/corelib/tools/qhash.h +++ b/src/corelib/tools/qhash.h @@ -103,6 +103,8 @@ template inline uint qHash(const T *key, uint seed = 0) #pragma warning( pop ) #endif +template inline uint qHash(const T &t, uint seed) { return (qHash(t) ^ seed); } + template inline uint qHash(const QPair &key, uint seed = 0) { uint h1 = qHash(key.first, seed); @@ -110,8 +112,6 @@ template inline uint qHash(const QPair &key, return ((h1 << 16) | (h1 >> 16)) ^ h2 ^ seed; } -template inline uint qHash(const T &t, uint seed) { return (qHash(t) ^ seed); } - struct Q_CORE_EXPORT QHashData { struct Node {