Commit 806e7586 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Modernize code

parent a3b91aae
Pipeline #41792 passed with stage
in 8 minutes and 49 seconds
......@@ -38,7 +38,7 @@ public:
KLDAP::LdapConfigWidget *mCfg = nullptr;
KLDAP::LdapServer *mServer = nullptr;
QPushButton *mOkButton = nullptr;
AddHostDialog *q = nullptr;
AddHostDialog *const q;
};
void AddHostDialogPrivate::readConfig()
......
......@@ -43,7 +43,7 @@ public:
void slotInfoMessage(KJob *, const QString &info, const QString &);
void slotDone();
LdapClient *q = nullptr;
LdapClient *const q;
KLDAP::LdapServer mServer;
QString mScope;
......
......@@ -37,8 +37,6 @@ class Q_DECL_HIDDEN LdapClientSearch::Private
public:
Private(LdapClientSearch *qq)
: q(qq)
, mActiveClients(0)
, mNoLDAPLookup(false)
{
mClientSearchConfig = new LdapClientSearchConfig;
}
......@@ -59,7 +57,7 @@ public:
void slotDataTimer();
void slotFileChanged(const QString &);
LdapClientSearch *q = nullptr;
LdapClientSearch *const q;
QList<LdapClient *> mClients;
QStringList mAttributes;
QString mSearchText;
......
......@@ -32,7 +32,7 @@ public:
: mParent(parent)
{
mainLayout = new QGridLayout(mParent);
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setContentsMargins({});
}
void setLDAPPort();
......
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