mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 23:02:24 +02:00
Merge pull request #1303 from daleglass/qt5-fix-qtcpsocket-error
Replace deprecated QAbstractsocket::error with QAbstractSocket::error…
This commit is contained in:
commit
45e10f0670
2 changed files with 4 additions and 5 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() {
|
||||
|
|
|
@ -1224,8 +1224,7 @@ void LimitedNodeList::updateLocalSocket() {
|
|||
QTcpSocket* localIPTestSocket = new QTcpSocket;
|
||||
|
||||
connect(localIPTestSocket, &QTcpSocket::connected, this, &LimitedNodeList::connectedForLocalSocketTest);
|
||||
connect(localIPTestSocket, static_cast<void(QTcpSocket::*)(QAbstractSocket::SocketError)>(&QTcpSocket::error),
|
||||
this, &LimitedNodeList::errorTestingLocalSocket);
|
||||
connect(localIPTestSocket, &QTcpSocket::errorOccurred, this, &LimitedNodeList::errorTestingLocalSocket);
|
||||
|
||||
// attempt to connect to our reliable host
|
||||
localIPTestSocket->connectToHost(RELIABLE_LOCAL_IP_CHECK_HOST, RELIABLE_LOCAL_IP_CHECK_PORT);
|
||||
|
|
Loading…
Reference in a new issue