diff --git a/src/Mod/Web/App/Server.cpp b/src/Mod/Web/App/Server.cpp index ca308ba2a3..50e93c2130 100644 --- a/src/Mod/Web/App/Server.cpp +++ b/src/Mod/Web/App/Server.cpp @@ -127,11 +127,11 @@ AppServer::AppServer( bool direct, QObject* parent) void AppServer::incomingConnection(qintptr socket) { - QTcpSocket* s = new QTcpSocket(this); - connect(s, SIGNAL(readyRead()), this, SLOT(readClient())); - connect(s, SIGNAL(disconnected()), this, SLOT(discardClient())); - s->setSocketDescriptor(socket); - addPendingConnection(s); + QTcpSocket* tcpSocket = new QTcpSocket(this); + connect(tcpSocket, &QTcpSocket::readyRead, this, &AppServer::readClient); + connect(tcpSocket, &QTcpSocket::disconnected, this, &AppServer::discardClient); + tcpSocket->setSocketDescriptor(socket); + addPendingConnection(tcpSocket); } void AppServer::readClient() diff --git a/src/Mod/Web/Gui/CookieJar.cpp b/src/Mod/Web/Gui/CookieJar.cpp index 4fc4677c26..261b01779c 100644 --- a/src/Mod/Web/Gui/CookieJar.cpp +++ b/src/Mod/Web/Gui/CookieJar.cpp @@ -48,7 +48,7 @@ FcCookieJar::FcCookieJar(QObject* parent) // syscalls in sequence (when loading pages which set multiple cookies). m_timer.setInterval(10000); m_timer.setSingleShot(true); - connect(&m_timer, SIGNAL(timeout()), this, SLOT(saveToDisk())); + connect(&m_timer, &QTimer::timeout, this, &FcCookieJar::saveToDisk); Base::FileInfo cookiefile(App::Application::getUserAppDataDir() + "cookies"); m_file.setFileName(QString::fromUtf8(cookiefile.filePath().c_str())); if (allCookies().isEmpty())