diff options
author | Giuseppe D'Angelo <dangelog@gmail.com> | 2012-03-25 08:18:15 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-05 20:48:53 +0200 |
commit | 538386f36fcf1dba7d6a0e71d1fb6861ce297558 (patch) | |
tree | 82c2376e2bad80c866d65472e29e85692614e4d3 /src/corelib/tools/qhash.h | |
parent | 2d89850b23eefe1ca497e8480191138badd17847 (diff) |
QLatin1String: add qHash overload
It was never introduced in Qt 4, probably because of the implicit
conversion to QString (that is, adding the qHash overload for
QLatin1String in Qt 4 would have been a BIC).
Change-Id: I2ebc8e73a85be497866820e0ca416dd11167bb53
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'src/corelib/tools/qhash.h')
-rw-r--r-- | src/corelib/tools/qhash.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/tools/qhash.h b/src/corelib/tools/qhash.h index e5606c6935..8fe66aac76 100644 --- a/src/corelib/tools/qhash.h +++ b/src/corelib/tools/qhash.h @@ -88,6 +88,7 @@ Q_CORE_EXPORT uint qHash(const QByteArray &key, uint seed = 0); Q_CORE_EXPORT uint qHash(const QString &key, uint seed = 0); Q_CORE_EXPORT uint qHash(const QStringRef &key, uint seed = 0); Q_CORE_EXPORT uint qHash(const QBitArray &key, uint seed = 0); +Q_CORE_EXPORT uint qHash(const QLatin1String &key, uint seed = 0); #if defined(Q_CC_MSVC) #pragma warning( push ) |