Commit f7cda637 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use qOverload directly (scripted)

parent 2abb127c
Pipeline #77328 passed with stage
in 6 minutes and 20 seconds
......@@ -195,10 +195,7 @@ void SessionThread::threadInit()
// Delay the call to slotSocketDisconnected so that it finishes disconnecting before we call reconnect()
connect(m_socket.get(), &QSslSocket::disconnected, this, &SessionThread::slotSocketDisconnected, Qt::QueuedConnection);
connect(m_socket.get(), &QSslSocket::connected, this, &SessionThread::socketConnected);
connect(m_socket.get(),
QOverload<QAbstractSocket::SocketError>::of(&QAbstractSocket::errorOccurred),
this,
&SessionThread::slotSocketError);
connect(m_socket.get(), qOverload<QAbstractSocket::SocketError>(&QAbstractSocket::errorOccurred), this, &SessionThread::slotSocketError);
connect(m_socket.get(), &QIODevice::bytesWritten, this, &SessionThread::socketActivity);
connect(m_socket.get(), &QSslSocket::encryptedBytesWritten, this, &SessionThread::socketActivity);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment