Commit f39b66da authored by Laurent Montel's avatar Laurent Montel 😁

Modernize code

parent 8f4b907f
Pipeline #33292 passed with stage
in 14 minutes and 22 seconds
......@@ -43,8 +43,6 @@ public:
, m_preferedAuthMode(LoginJob::Login)
, m_actualAuthMode(LoginJob::UnknownAuth)
, m_encryptionMode(LoginJob::Unencrypted)
, m_saslConn(nullptr)
, m_saslClient(nullptr)
, q(job)
{
}
......
......@@ -27,11 +27,10 @@ public:
SendJobPrivate(SendJob *job, Session *session, const QString &name)
: JobPrivate(session, name)
, q(job)
, m_status(Idle)
{
}
SendJob *q = nullptr;
SendJob *const q;
void sendNextRecipient();
void addRecipients(const QStringList &rcpts);
......@@ -48,7 +47,7 @@ public:
QByteArray m_data;
QStringList m_recipientsCopy;
Status m_status;
Status m_status = Idle;
};
}
......
......@@ -31,15 +31,8 @@ SessionPrivate::SessionPrivate(Session *session)
: QObject(session)
, q(session)
, m_state(Session::Disconnected)
, m_thread(nullptr)
, m_socketTimerInterval(60000)
, m_startLoop(nullptr)
, m_sslVersion(QSsl::UnknownProtocol)
, m_jobRunning(false)
, m_currentJob(nullptr)
, m_ehloRejected(false)
, m_size(0)
, m_allowsTls(false)
{
qRegisterMetaType<QSsl::SslProtocol>();
qRegisterMetaType<KSslErrorUiData>();
......
......@@ -68,7 +68,7 @@ private:
Session *m_parentSession = nullptr;
QString m_hostName;
quint16 m_port;
bool m_useProxy;
bool m_useProxy = false;
};
}
......
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