diff options
author | Peter Hartmann <peter.hartmann@nokia.com> | 2010-01-12 18:10:12 (GMT) |
---|---|---|
committer | Peter Hartmann <peter.hartmann@nokia.com> | 2010-01-13 09:06:20 (GMT) |
commit | b38da980696e69b61d2f5411ad2f2c36453ed089 (patch) | |
tree | 8a9e8160ea104ddd23706ea185e87320bb6f4708 /src/xmlpatterns | |
parent | 22796b38c3a7dbcdb540e4c58e645b0267fe360c (diff) | |
download | Qt-b38da980696e69b61d2f5411ad2f2c36453ed089.zip Qt-b38da980696e69b61d2f5411ad2f2c36453ed089.tar.gz Qt-b38da980696e69b61d2f5411ad2f2c36453ed089.tar.bz2 |
add a hash function to QUrl, and remove the xmlpatterns specific one
we had a hash function defined in xmlpatterns; this commit adds a global
hash function for QUrls.
Beware that code that defines its own hash function for QUrls will need
to #ifdef it out for 4.7.
Patch-By: Warwick Allison
Reviewed-by: Peter Hartmann
Reviewed-by: Thiago Macieira
Diffstat (limited to 'src/xmlpatterns')
-rw-r--r-- | src/xmlpatterns/type/qprimitives_p.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/xmlpatterns/type/qprimitives_p.h b/src/xmlpatterns/type/qprimitives_p.h index 01c04a1..d86fa4f 100644 --- a/src/xmlpatterns/type/qprimitives_p.h +++ b/src/xmlpatterns/type/qprimitives_p.h @@ -79,18 +79,6 @@ class QString; */ namespace QPatternist { - - /** - * @internal - * - * A method to allow a QHash or QSet with QUrl - * as key type. - */ - inline uint qHash(const QUrl &uri) - { - return qHash(uri.toString()); - } - /** * @defgroup Patternist_cppWXSTypes C++ Primitives for W3C XML Schema Number Types * @@ -208,8 +196,6 @@ namespace QPatternist QString Q_AUTOTEST_EXPORT escape(const QString &input); } -using QPatternist::qHash; - QT_END_NAMESPACE QT_END_HEADER |