From dd5b373d41f99f06efd1a927a3323abada4fd6ef Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 2 May 2012 16:32:26 +0200 Subject: 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 Reviewed-by: Shane Kearns Reviewed-by: Richard J. Moore --- .../network/access/qnetworkreply/tst_qnetworkreply.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/benchmarks/network/access') 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); } -- cgit v1.2.3