summaryrefslogtreecommitdiff
path: root/tools/xmlpatterns/main.cpp
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2012-02-01 12:06:18 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-02 06:57:25 +0100
commit42db8b2df643ca46b5c096f8e0951ef158a9c687 (patch)
tree4fb0b14d2e89bc33e1a7c896c9c5af0dfe7a8c2d /tools/xmlpatterns/main.cpp
parentf42f82f435d738339ad85c1380d1167338517247 (diff)
downloadqtxmlpatterns-42db8b2df643ca46b5c096f8e0951ef158a9c687.tar.gz
Fix QUrl handling after QUrl changes.
toString() is fine for most usages but here the result is made part of XML bits, so toEncoded() is necessary so that '<' and '>' are percent-encoded. Change-Id: I41832cefe3ae12cab13531f17095d0804a2e86d9 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tools/xmlpatterns/main.cpp')
-rw-r--r--tools/xmlpatterns/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/xmlpatterns/main.cpp b/tools/xmlpatterns/main.cpp
index 8b661eb..171c6e5 100644
--- a/tools/xmlpatterns/main.cpp
+++ b/tools/xmlpatterns/main.cpp
@@ -222,7 +222,7 @@ static inline QUrl finalizeURI(const QApplicationArgumentParser &parser,
const QString stringURI(parser.value(arg).toString());
if(parser.has(isURI))
- userURI = QUrl::fromEncoded(stringURI.toLatin1());
+ userURI = QUrl(stringURI);
else
userURI = QUrl::fromLocalFile(stringURI);
}