diff options
Diffstat (limited to 'src/corelib/tools/qdatetime.cpp')
-rw-r--r-- | src/corelib/tools/qdatetime.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/tools/qdatetime.cpp b/src/corelib/tools/qdatetime.cpp index 8c9944b001..162117602b 100644 --- a/src/corelib/tools/qdatetime.cpp +++ b/src/corelib/tools/qdatetime.cpp @@ -4097,7 +4097,7 @@ uint qHash(const QDateTime &key, uint seed) Returns the hash value for the \a key, using \a seed to seed the calculation. */ -uint qHash(const QDate &key, uint seed) +uint qHash(const QDate &key, uint seed) Q_DECL_NOTHROW { return qHash(key.toJulianDay(), seed); } @@ -4108,9 +4108,9 @@ uint qHash(const QDate &key, uint seed) Returns the hash value for the \a key, using \a seed to seed the calculation. */ -uint qHash(const QTime &key, uint seed) +uint qHash(const QTime &key, uint seed) Q_DECL_NOTHROW { - return QTime(0, 0, 0, 0).msecsTo(key) ^ seed; + return qHash(QTime(0, 0, 0, 0).msecsTo(key), seed); } #ifndef QT_BOOTSTRAPPED |