X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fidentserver.cpp;h=18411562d9a23523da65a5d7c447e79c9d8990e9;hp=c68d119e2a43e33a6979df32e280d2be8c714187;hb=900cce213a6ed000b7131a05a0dec7d04b35b023;hpb=e212eabe53878a8fa6ecb15909a325ed7dd63283 diff --git a/src/core/identserver.cpp b/src/core/identserver.cpp index c68d119e..18411562 100644 --- a/src/core/identserver.cpp +++ b/src/core/identserver.cpp @@ -22,14 +22,13 @@ #include "corenetwork.h" #include "identserver.h" -#include "logger.h" +#include "logmessage.h" -IdentServer::IdentServer(bool strict, QObject *parent) +IdentServer::IdentServer(QObject *parent) : QObject(parent) - , _strict(strict) { - connect(&_server, SIGNAL(newConnection()), this, SLOT(incomingConnection())); - connect(&_v6server, SIGNAL(newConnection()), this, SLOT(incomingConnection())); + connect(&_server, &QTcpServer::newConnection, this, &IdentServer::incomingConnection); + connect(&_v6server, &QTcpServer::newConnection, this, &IdentServer::incomingConnection); } @@ -94,15 +93,15 @@ void IdentServer::incomingConnection() Q_ASSERT(server); while (server->hasPendingConnections()) { QTcpSocket *socket = server->nextPendingConnection(); - connect(socket, SIGNAL(readyRead()), this, SLOT(respond())); - connect(socket, SIGNAL(disconnected()), socket, SLOT(deleteLater())); + connect(socket, &QIODevice::readyRead, this, &IdentServer::respond); + connect(socket, &QAbstractSocket::disconnected, socket, &QObject::deleteLater); } } void IdentServer::respond() { - QTcpSocket *socket = qobject_cast(sender()); + auto *socket = qobject_cast(sender()); Q_ASSERT(socket); qint64 transactionId = _socketId;