Simplify simple chat example
authorJędrzej Nowacki <jedrzej.nowacki@digia.com>
Tue, 11 Feb 2014 09:21:36 +0000 (10:21 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 11 Feb 2014 11:47:09 +0000 (12:47 +0100)
Change-Id: Ia4e6973e6531017129ae39c89851fbbf3ade76c4
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
examples/simplechat/chatserver.h
examples/simplechat/main.cpp

index 36ef22e..1a0af0a 100644 (file)
@@ -55,8 +55,6 @@ public:
     explicit ChatServer(quint16 port, QObject *parent = Q_NULLPTR);
     virtual ~ChatServer();
 
-Q_SIGNALS:
-
 private Q_SLOTS:
     void onNewConnection();
     void processMessage(QString message);
index 19281eb..d3a9c9d 100644 (file)
@@ -46,7 +46,5 @@ int main(int argc, char *argv[])
     QCoreApplication a(argc, argv);
     ChatServer server(1234);
 
-    Q_UNUSED(server);
-
     return a.exec();
 }