summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcel Krems <m.krems@software-vision.eu>2020-08-20 12:15:17 +0200
committerMarcel Krems <m.krems@software-vision.eu>2020-08-20 17:06:32 +0200
commit5cc9be7778ce64ffa44bddd768559331f6748fe9 (patch)
treed16ba808b3b33bf7f5da6ee12daa25268d0021d6 /src
parentb73729efb1ea99ebc5cf6a61aadc9dcf88003549 (diff)
downloadqtwebsockets-5cc9be7778ce64ffa44bddd768559331f6748fe9.tar.gz
Fix compilation by replacing QStringRef with QStringView
Change-Id: I3f34797df1fbf25be03c4d548d8d59df68794f1e Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/websockets/qwebsockethandshakerequest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/websockets/qwebsockethandshakerequest.cpp b/src/websockets/qwebsockethandshakerequest.cpp
index 9c1d41b..097fbaa 100644
--- a/src/websockets/qwebsockethandshakerequest.cpp
+++ b/src/websockets/qwebsockethandshakerequest.cpp
@@ -239,7 +239,7 @@ void QWebSocketHandshakeRequest::readHandshake(QTextStream &textStream, int maxH
const QString resourceName(tokens.at(1));
const QString httpProtocol(tokens.at(2));
bool conversionOk = false;
- const float httpVersion = httpProtocol.midRef(5).toFloat(&conversionOk);
+ const float httpVersion = QStringView(httpProtocol).mid(5).toFloat(&conversionOk);
if (Q_UNLIKELY(!conversionOk)) {
clear();