summaryrefslogtreecommitdiff
path: root/examples/echoclient
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2014-02-03 01:40:33 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-04 11:15:19 +0100
commita2fd8f50fe268d3f384418073e8fdc07fd258c62 (patch)
tree352ce66c22553b096b0dd09c4a00e548bb0dc212 /examples/echoclient
parenta759cd77495d34ce5c47d17e3e084084f6cedd04 (diff)
downloadqtwebsockets-a2fd8f50fe268d3f384418073e8fdc07fd258c62.tar.gz
Remove superfluous Q_REQUIRED_RESULT
Change-Id: Ie4e01a82082c45918b55e8588c7322dd359ba8c1 Reviewed-by: Milian Wolff <milian.wolff@kdab.com> Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'examples/echoclient')
-rw-r--r--examples/echoclient/echoclient.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/echoclient/echoclient.cpp b/examples/echoclient/echoclient.cpp
index c1ef7ed..dbda381 100644
--- a/examples/echoclient/echoclient.cpp
+++ b/examples/echoclient/echoclient.cpp
@@ -61,8 +61,7 @@ void EchoClient::onConnected()
qDebug() << "Websocket connected";
connect(&m_webSocket, &QWebSocket::textMessageReceived,
this, &EchoClient::onTextMessageReceived);
- qint64 bytesWritten = m_webSocket.sendTextMessage(QStringLiteral("Hello, world!"));
- Q_UNUSED(bytesWritten);
+ m_webSocket.sendTextMessage(QStringLiteral("Hello, world!"));
}
//! [onConnected]