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