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

Use qOverload directly (scripted)

parent 51fce689
Pipeline #77335 passed with stage
in 3 minutes and 41 seconds
......@@ -137,13 +137,10 @@ void SessionThread::run()
connect(m_socket.get(), &QSslSocket::disconnected, m_parentSession->d, &SessionPrivate::socketDisconnected);
connect(m_socket.get(), &QSslSocket::connected, m_parentSession->d, &SessionPrivate::socketConnected);
connect(m_socket.get(),
QOverload<QAbstractSocket::SocketError>::of(&QAbstractSocket::errorOccurred),
this,
[this](QAbstractSocket::SocketError err) {
qCWarning(KSMTP_LOG) << "SMTP Socket error:" << err << m_socket->errorString();
Q_EMIT m_parentSession->connectionError(m_socket->errorString());
});
connect(m_socket.get(), qOverload<QAbstractSocket::SocketError>(&QAbstractSocket::errorOccurred), this, [this](QAbstractSocket::SocketError err) {
qCWarning(KSMTP_LOG) << "SMTP Socket error:" << err << m_socket->errorString();
Q_EMIT m_parentSession->connectionError(m_socket->errorString());
});
connect(this, &SessionThread::encryptionNegotiationResult, m_parentSession->d, &SessionPrivate::encryptionNegotiationResult);
connect(this, &SessionThread::responseReceived, m_parentSession->d, &SessionPrivate::responseReceived);
......
Supports Markdown
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