diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-01-12 03:23:21 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-01-12 03:23:21 (GMT) |
commit | a53008073216540bb5cfd40563e4b33ba139832c (patch) | |
tree | 6f965d77a0443d4632b8661b1708bafd67baadfa /src/xmlpatterns | |
parent | e6877a75a6be941d09cc57bfbadc6502528ae289 (diff) | |
download | Qt-a53008073216540bb5cfd40563e4b33ba139832c.zip Qt-a53008073216540bb5cfd40563e4b33ba139832c.tar.gz Qt-a53008073216540bb5cfd40563e4b33ba139832c.tar.bz2 |
Improve efficiency and correctness of qHash(QUrl), and use it in Declarative
rather than qHash(url.toString()).
Similar corelib changes may come from 4.6 too.
Diffstat (limited to 'src/xmlpatterns')
-rw-r--r-- | src/xmlpatterns/type/qprimitives_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmlpatterns/type/qprimitives_p.h b/src/xmlpatterns/type/qprimitives_p.h index 01c04a1..4be89d9 100644 --- a/src/xmlpatterns/type/qprimitives_p.h +++ b/src/xmlpatterns/type/qprimitives_p.h @@ -88,7 +88,7 @@ namespace QPatternist */ inline uint qHash(const QUrl &uri) { - return qHash(uri.toString()); + return qHash(uri.toEncoded(QUrl::FormattingOption(0x100))); } /** |