mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Update slots to the new syntax, use QAbstractSocket::errorOccurred
This commit is contained in:
parent
24ab523acc
commit
ae9f2aa1ee
1 changed files with 3 additions and 3 deletions
|
@ -124,9 +124,9 @@ HTTPConnection::HTTPConnection(QTcpSocket* socket, HTTPManager* parentManager) :
|
|||
_socket->setParent(this);
|
||||
|
||||
// connect initial slots
|
||||
connect(socket, SIGNAL(readyRead()), SLOT(readRequest()));
|
||||
connect(socket, SIGNAL(error(QAbstractSocket::SocketError)), SLOT(deleteLater()));
|
||||
connect(socket, SIGNAL(disconnected()), SLOT(deleteLater()));
|
||||
connect(socket, &QAbstractSocket::readyRead, this, &HTTPConnection::readRequest);
|
||||
connect(socket, &QAbstractSocket::errorOccurred, this, &HTTPConnection::deleteLater);
|
||||
connect(socket, &QAbstractSocket::disconnected, this, &HTTPConnection::deleteLater);
|
||||
}
|
||||
|
||||
HTTPConnection::~HTTPConnection() {
|
||||
|
|
Loading…
Reference in a new issue