Commit 64d753ba authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Modernize code

parent 14ed6332
Pipeline #42589 passed with stage
in 13 minutes and 20 seconds
......@@ -17,14 +17,6 @@
Ldap::Ldap(QObject *parent)
: SetupObject(parent)
, m_clientSearchConfig(new KLDAP::LdapClientSearchConfig)
, m_port(389)
, m_security(KLDAP::LdapServer::None)
, m_version(3)
, m_pageSize(0)
, m_timeLimit(0)
, m_sizeLimit(0)
, m_entry(-1)
, m_editMode(false)
{
}
......
......@@ -46,7 +46,7 @@ public Q_SLOTS:
protected:
virtual KConfig *config() const;
KLDAP::LdapClientSearchConfig *m_clientSearchConfig = nullptr;
KLDAP::LdapClientSearchConfig * const m_clientSearchConfig;
private:
friend class LdapTest;
QString securityString();
......@@ -59,14 +59,14 @@ private:
QString m_mech;
QString m_realm;
QString m_baseDn;
int m_port;
KLDAP::LdapServer::Security m_security;
int m_version;
int m_pageSize;
int m_timeLimit;
int m_sizeLimit;
int m_entry;
bool m_editMode;
int m_port = 389;
KLDAP::LdapServer::Security m_security = KLDAP::LdapServer::None;
int m_version = 3;
int m_pageSize = 0;
int m_timeLimit = 0;
int m_sizeLimit = 0;
int m_entry = -1;
bool m_editMode = false;
};
#endif
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