qHash: always use the seed in the catch-all template

This pertubates the results of the calls to the one-argument
version of qHash through the catch-all template.

Change-Id: I7037b25d545e6f1360384a83ff895f4bb62ed195
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
Giuseppe D'Angelo 2012-04-04 16:21:03 +01:00 committed by Qt by Nokia
parent 9ddb822a86
commit 1241a02a01

View File

@ -109,7 +109,7 @@ template <typename T1, typename T2> inline uint qHash(const QPair<T1, T2> &key)
return ((h1 << 16) | (h1 >> 16)) ^ h2;
}
template<typename T> inline uint qHash(const T &t, uint) { return qHash(t); }
template<typename T> inline uint qHash(const T &t, uint seed) { return (qHash(t) ^ seed); }
struct Q_CORE_EXPORT QHashData
{