summaryrefslogtreecommitdiffstats
path: root/src/xmlpatterns
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-01-12 03:23:21 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-01-12 03:23:21 (GMT)
commita53008073216540bb5cfd40563e4b33ba139832c (patch)
tree6f965d77a0443d4632b8661b1708bafd67baadfa /src/xmlpatterns
parente6877a75a6be941d09cc57bfbadc6502528ae289 (diff)
downloadQt-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.h2
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)));
}
/**