summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/auto/websockets/handshakerequest/tst_handshakerequest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/websockets/handshakerequest/tst_handshakerequest.cpp b/tests/auto/websockets/handshakerequest/tst_handshakerequest.cpp
index 2921e57..668bbe1 100644
--- a/tests/auto/websockets/handshakerequest/tst_handshakerequest.cpp
+++ b/tests/auto/websockets/handshakerequest/tst_handshakerequest.cpp
@@ -330,7 +330,7 @@ void tst_HandshakeRequest::tst_qtbug_48123_data()
//a headerline should not be larger than MAX_HEADERLINE_LENGTH characters (excluding CRLF)
QString illegalHeader = header;
- illegalHeader.append(QString(MAX_HEADERLINE_LENGTH + 1, QChar::fromAscii('c')));
+ illegalHeader.append(QString(MAX_HEADERLINE_LENGTH + 1, QLatin1Char('c')));
illegalHeader.append(QStringLiteral("\r\n\r\n"));
QTest::newRow("headerline too long") << illegalHeader << false;
@@ -338,7 +338,7 @@ void tst_HandshakeRequest::tst_qtbug_48123_data()
QString legalHeader = header;
const QString headerKey = QStringLiteral("X-CUSTOM-KEY: ");
legalHeader.append(headerKey);
- legalHeader.append(QString(MAX_HEADERLINE_LENGTH - headerKey.length(), QChar::fromAscii('c')));
+ legalHeader.append(QString(MAX_HEADERLINE_LENGTH - headerKey.length(), QLatin1Char('c')));
legalHeader.append(QStringLiteral("\r\n\r\n"));
QTest::newRow("headerline with maximum length") << legalHeader << true;