summaryrefslogtreecommitdiff
path: root/examples/websockets/sslechoclient
diff options
context:
space:
mode:
authorFrank Meerkoetter <frank.meerkoetter@basyskom.com>2015-12-25 21:46:15 +0100
committerFrank Meerkoetter <frank.meerkoetter@basyskom.com>2016-04-07 07:49:37 +0000
commit250c96f7bcaed7a9d596c69dcb93c297127819bf (patch)
tree1bf0f296cefb2be2ced76cb69c8b4df81273e2d4 /examples/websockets/sslechoclient
parentf2407e1d1ec9d6fcea9180f9d48e51c7f287b57a (diff)
downloadqtwebsockets-250c96f7bcaed7a9d596c69dcb93c297127819bf.tar.gz
No need to manually call the default constructor
Cleaning up the examples a little. There is no need to explicitly call the default constructor for these members. Change-Id: I7a931ea78f6db1bc1c70f7c49bc85f51e8666d47 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'examples/websockets/sslechoclient')
-rw-r--r--examples/websockets/sslechoclient/sslechoclient.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/websockets/sslechoclient/sslechoclient.cpp b/examples/websockets/sslechoclient/sslechoclient.cpp
index cb15e35..3de2fec 100644
--- a/examples/websockets/sslechoclient/sslechoclient.cpp
+++ b/examples/websockets/sslechoclient/sslechoclient.cpp
@@ -56,8 +56,7 @@ QT_USE_NAMESPACE
//! [constructor]
SslEchoClient::SslEchoClient(const QUrl &url, QObject *parent) :
- QObject(parent),
- m_webSocket()
+ QObject(parent)
{
connect(&m_webSocket, &QWebSocket::connected, this, &SslEchoClient::onConnected);
typedef void (QWebSocket:: *sslErrorsSignal)(const QList<QSslError> &);