diff options
Diffstat (limited to 'examples/webchannel/chatserver-cpp/main.cpp')
-rw-r--r-- | examples/webchannel/chatserver-cpp/main.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/examples/webchannel/chatserver-cpp/main.cpp b/examples/webchannel/chatserver-cpp/main.cpp index 240518c..ea27e87 100644 --- a/examples/webchannel/chatserver-cpp/main.cpp +++ b/examples/webchannel/chatserver-cpp/main.cpp @@ -49,17 +49,13 @@ ****************************************************************************/ #include "qwebchannel.h" - -#include <QCoreApplication> -#include <QUrl> -#include <QDebug> - -#include <QtWebSockets/QWebSocketServer> +#include "chatserver.h" #include "../shared/websocketclientwrapper.h" #include "../shared/websockettransport.h" -#include "chatserver.h" +#include <QtWebSockets/QWebSocketServer> +#include <QCoreApplication> int main(int argc, char** argv) { @@ -82,7 +78,7 @@ int main(int argc, char** argv) // setup the dialog and publish it to the QWebChannel ChatServer* chatserver = new ChatServer(&app); - channel.registerObject("chatserver", chatserver); + channel.registerObject(QStringLiteral("chatserver"), chatserver); return app.exec(); } |