Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 1018a41f authored by Laurent Montel's avatar Laurent Montel 😁

Initialize pointer

parent 979b9905
......@@ -97,7 +97,7 @@ public:
void LdapConfigWidget::Private::initWidget()
{
QLabel *label;
QLabel *label = nullptr;
mUser = mHost = mDn = mBindDn = mRealm = mFilter = nullptr;
mPassword = nullptr;
......
......@@ -80,7 +80,7 @@ QModelIndex LdapModel::parent(const QModelIndex &child) const
QModelIndex LdapModel::index(int row, int col, const QModelIndex &parent) const
{
// Retrieve a pointer to the parent item
LdapModelDNNode *parentItem;
LdapModelDNNode *parentItem = nullptr;
if (!parent.isValid()) {
parentItem = m_d->rootNode();
} else {
......
......@@ -70,8 +70,8 @@ public:
}
private:
LdapModelDNNode *m_parent;
bool m_isPopulated;
LdapModelDNNode *m_parent = nullptr;
bool m_isPopulated = 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