summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/network/access/qnetworkreply
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-05-02 16:32:26 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-04 12:46:05 +0200
commitdd5b373d41f99f06efd1a927a3323abada4fd6ef (patch)
treecc5f084b93a351df22a84b62dc3977df1e69caf1 /tests/benchmarks/network/access/qnetworkreply
parent2883a6de408c991ecf6184d7216c7d3de6fa4f4f (diff)
Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtNetwork]
This operation should be a no-op anyway, since at this point in time, the fromAscii and toAscii functions simply call their fromLatin1 and toLatin1 counterparts. Task-number: QTBUG-21872 Change-Id: I94cc301ea75cc689bcb6e2d417120cf14e36808d Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Shane Kearns <shane.kearns@accenture.com> Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'tests/benchmarks/network/access/qnetworkreply')
-rw-r--r--tests/benchmarks/network/access/qnetworkreply/tst_qnetworkreply.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/benchmarks/network/access/qnetworkreply/tst_qnetworkreply.cpp b/tests/benchmarks/network/access/qnetworkreply/tst_qnetworkreply.cpp
index d6477475d3..7736ce5481 100644
--- a/tests/benchmarks/network/access/qnetworkreply/tst_qnetworkreply.cpp
+++ b/tests/benchmarks/network/access/qnetworkreply/tst_qnetworkreply.cpp
@@ -386,9 +386,9 @@ public slots:
client->readAll();
client->write("HTTP/1.0 200 OK\n");
if (serverSendsContentLength)
- client->write(QString("Content-Length: " + QString::number(dataSize) + "\n").toAscii());
+ client->write(QString("Content-Length: " + QString::number(dataSize) + "\n").toLatin1());
if (chunkedEncoding)
- client->write(QString("Transfer-Encoding: chunked\n").toAscii());
+ client->write(QString("Transfer-Encoding: chunked\n").toLatin1());
client->write("Connection: close\n\n");
}
@@ -399,7 +399,7 @@ public slots:
// chunked encoding: we have to send a last "empty" chunk
if (chunkedEncoding)
- client->write(QString("0\r\n\r\n").toAscii());
+ client->write(QString("0\r\n\r\n").toLatin1());
client->disconnectFromHost();
server.close();
@@ -413,9 +413,9 @@ public slots:
QByteArray data(amount, '@');
if (chunkedEncoding) {
- client->write(QString(QString("%1").arg(amount,0,16).toUpper() + "\r\n").toAscii());
+ client->write(QString(QString("%1").arg(amount,0,16).toUpper() + "\r\n").toLatin1());
client->write(data.constData(), amount);
- client->write(QString("\r\n").toAscii());
+ client->write(QString("\r\n").toLatin1());
} else {
client->write(data.constData(), amount);
}