summaryrefslogtreecommitdiffstats
path: root/src/network/access/qnetworkreplydataimpl.cpp
diff options
context:
space:
mode:
authorThiago Macieira <[email protected]>2011-10-13 19:56:28 +0200
committerQt by Nokia <[email protected]>2012-03-30 01:19:59 +0200
commit74d2dba46041448c70dbd3049ae2a8277770baf6 (patch)
treeb7745d6387b86768b85a5e772dd654cb91412aa8 /src/network/access/qnetworkreplydataimpl.cpp
parent8cf66c3bc4482bbefad90ce7ad34ac6c3de8478f (diff)
Port to the new QUrl API
The use of any broken-down components of the query now needs QUrlQuery. The QUrl constructor and toString() are now rehabilitated and the preferred forms. Use toEncoded() and fromEncoded() now only when we need to store data in a QByteArray or the data comes from a QByteArray anyway. Change to toString() or the constructor if the data was in a QString. Change-Id: I9d761a628bef9c70185a48e927a61779a1642342 Reviewed-by: Lars Knoll <[email protected]>
Diffstat (limited to 'src/network/access/qnetworkreplydataimpl.cpp')
-rw-r--r--src/network/access/qnetworkreplydataimpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qnetworkreplydataimpl.cpp b/src/network/access/qnetworkreplydataimpl.cpp
index ab2c97b6530..7a8d4ee3e02 100644
--- a/src/network/access/qnetworkreplydataimpl.cpp
+++ b/src/network/access/qnetworkreplydataimpl.cpp
@@ -88,7 +88,7 @@ QNetworkReplyDataImpl::QNetworkReplyDataImpl(QObject *parent, const QNetworkRequ
} else {
// something wrong with this URI
const QString msg = QCoreApplication::translate("QNetworkAccessDataBackend",
- "Invalid URI: %1").arg(QString::fromLatin1(url.toEncoded()));
+ "Invalid URI: %1").arg(url.toString());
setError(QNetworkReply::ProtocolFailure, msg);
QMetaObject::invokeMethod(this, "error", Qt::QueuedConnection,
Q_ARG(QNetworkReply::NetworkError, QNetworkReply::ProtocolFailure));