diff options
Diffstat (limited to 'examples/echoclient/echoclient.cpp')
-rw-r--r-- | examples/echoclient/echoclient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/echoclient/echoclient.cpp b/examples/echoclient/echoclient.cpp index 8ef8aff..0c9bef8 100644 --- a/examples/echoclient/echoclient.cpp +++ b/examples/echoclient/echoclient.cpp @@ -61,7 +61,7 @@ void EchoClient::onConnected() qDebug() << "Websocket connected"; connect(&m_webSocket, &QWebSocket::textMessageReceived, this, &EchoClient::onTextMessageReceived); - qint64 bytesWritten = m_webSocket.write("Hello, world!"); + qint64 bytesWritten = m_webSocket.write(QStringLiteral("Hello, world!")); Q_UNUSED(bytesWritten); } //! [onConnected] |