From: Thiago Macieira Date: Mon, 26 Mar 2012 22:56:23 +0000 (-0300) Subject: The QUrl constructor can be used once again, so use it. X-Git-Tag: 071012131707~551 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1653335c4bc821b082f02353d18e0ab186392911;p=profile%2Fivi%2Fqtdeclarative.git 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 --- diff --git a/src/qml/qml/qqmlxmlhttprequest.cpp b/src/qml/qml/qqmlxmlhttprequest.cpp index 8f63a4b..94ee7c7 100644 --- a/src/qml/qml/qqmlxmlhttprequest.cpp +++ b/src/qml/qml/qqmlxmlhttprequest.cpp @@ -1503,7 +1503,7 @@ static v8::Handle 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);