summaryrefslogtreecommitdiff
path: root/examples/echoclient/echoclient.cpp
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2014-01-18 21:38:06 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-20 17:39:49 +0100
commit9d3f3b39bfb4b702ff702f550dd30ade6b5f0afa (patch)
treea584059e811fa08e593e586ad88d4b29783542cc /examples/echoclient/echoclient.cpp
parent9373258b80983bf8f45c98628b08e02adf25edf3 (diff)
downloadqtwebsockets-9d3f3b39bfb4b702ff702f550dd30ade6b5f0afa.tar.gz
Consume return value of write function
Change-Id: Ia5d950f539f87f2f81e111f26e77960be456017e Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'examples/echoclient/echoclient.cpp')
-rw-r--r--examples/echoclient/echoclient.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/echoclient/echoclient.cpp b/examples/echoclient/echoclient.cpp
index 1ea3006..8ef8aff 100644
--- a/examples/echoclient/echoclient.cpp
+++ b/examples/echoclient/echoclient.cpp
@@ -61,7 +61,8 @@ void EchoClient::onConnected()
qDebug() << "Websocket connected";
connect(&m_webSocket, &QWebSocket::textMessageReceived,
this, &EchoClient::onTextMessageReceived);
- m_webSocket.write("Hello, world!");
+ qint64 bytesWritten = m_webSocket.write("Hello, world!");
+ Q_UNUSED(bytesWritten);
}
//! [onConnected]