aboutsummaryrefslogtreecommitdiffstats
path: root/examples/websockets/simplechat
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/simplechat
parentf2407e1d1ec9d6fcea9180f9d48e51c7f287b57a (diff)
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/simplechat')
-rw-r--r--examples/websockets/simplechat/chatserver.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/websockets/simplechat/chatserver.cpp b/examples/websockets/simplechat/chatserver.cpp
index 33e5d8d..5a0c998 100644
--- a/examples/websockets/simplechat/chatserver.cpp
+++ b/examples/websockets/simplechat/chatserver.cpp
@@ -57,8 +57,7 @@ QT_USE_NAMESPACE
//! [constructor]
ChatServer::ChatServer(quint16 port, QObject *parent) :
QObject(parent),
- m_pWebSocketServer(Q_NULLPTR),
- m_clients()
+ m_pWebSocketServer(Q_NULLPTR)
{
m_pWebSocketServer = new QWebSocketServer(QStringLiteral("Chat Server"),
QWebSocketServer::NonSecureMode,