summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@qt.io>2020-06-10 11:20:53 +0200
committerKarsten Heimrich <karsten.heimrich@qt.io>2020-06-10 11:44:11 +0200
commit3019926e4618e0dea03fa326d9aa3732ee7a4698 (patch)
tree6a58df423d6b1ab5c5bc1c9050da04839a25530e
parent891a007f6cb7c65f4c1b8087e99eefdcecd29eac (diff)
downloadqtwebsockets-3019926e4618e0dea03fa326d9aa3732ee7a4698.tar.gz
Qt6: Remove single usage of soon to be deprecated QStringRef
Task-number: QTBUG-84319 Change-Id: I03279783140af155b5db55f5c0584832af009f8a Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
-rw-r--r--tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp b/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp
index 4f06e22..329419c 100644
--- a/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp
+++ b/tests/auto/websockets/qwebsocket/tst_qwebsocket.cpp
@@ -804,7 +804,7 @@ void tst_QWebSocket::overlongCloseReason()
QCOMPARE(socket.closeCode(), QWebSocketProtocol::CloseCodeGoingAway);
// Max length of a control frame is 125, but 2 bytes are used for the close code:
QCOMPARE(socket.closeReason().length(), 123);
- QCOMPARE(socket.closeReason(), reason.leftRef(123));
+ QCOMPARE(socket.closeReason(), reason.left(123));
QTRY_COMPARE(socketDisconnectedSpy.count(), 1);
}