Fixed warnings during compilation

This commit is contained in:
David Kaya
2017-02-03 00:54:32 +01:00
parent 7ec51f7da7
commit 5d800be890
2 changed files with 4 additions and 3 deletions

View File

@@ -5,8 +5,8 @@
ApplicationController::ApplicationController(WebEngineView* webEngineView, QObject *parent) :
QObject(parent),
webEngineView(webEngineView),
webSocket(new QWebSocket())
webSocket(new QWebSocket()),
webEngineView(webEngineView)
{
connect(webSocket, &QWebSocket::connected, this, &ApplicationController::connected);
connect(webSocket, &QWebSocket::textMessageReceived, this, &ApplicationController::messageReceived);
@@ -45,6 +45,7 @@ void ApplicationController::messageReceived(const QString &message)
}
void ApplicationController::error(QAbstractSocket::SocketError error)
{
Q_UNUSED(error);
qDebug() << webSocket->errorString();
}

View File

@@ -8,7 +8,7 @@ QT += core gui webenginewidgets websockets
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = desktop-shell
TARGET = testa
TEMPLATE = app
LIBS += -framework CoreData -framework Foundation -framework AppKit