aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlxmlhttprequest.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-03-26 19:56:23 -0300
committerQt by Nokia <qt-info@nokia.com>2012-04-24 13:01:10 +0200
commit1653335c4bc821b082f02353d18e0ab186392911 (patch)
tree8be29c34e5629d2c70e466d036b369769aa3081f /src/qml/qml/qqmlxmlhttprequest.cpp
parent826a5390a13991e9ef2c2f11366c4ab55480594f (diff)
The QUrl constructor can be used once again, so use it.
Slight performance gain by avoiding a round-trip through QByteArray. Change-Id: Ibcd2e20f92236ca9878e52665b6d677019bb19a4 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
Diffstat (limited to 'src/qml/qml/qqmlxmlhttprequest.cpp')
-rw-r--r--src/qml/qml/qqmlxmlhttprequest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlxmlhttprequest.cpp b/src/qml/qml/qqmlxmlhttprequest.cpp
index 8f63a4b2cb..94ee7c7dc3 100644
--- a/src/qml/qml/qqmlxmlhttprequest.cpp
+++ b/src/qml/qml/qqmlxmlhttprequest.cpp
@@ -1503,7 +1503,7 @@ static v8::Handle<v8::Value> qmlxmlhttprequest_open(const v8::Arguments &args)
V8THROW_DOM(DOMEXCEPTION_SYNTAX_ERR, "Unsupported HTTP method type");
// Argument 1 - URL
- QUrl url = QUrl::fromEncoded(engine->toString(args[1]).toUtf8());
+ QUrl url = QUrl(engine->toString(args[1]));
if (url.isRelative())
url = engine->callingContext()->resolvedUrl(url);