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 4ae4d754 authored by Laurent Montel's avatar Laurent Montel 😁

Initialize pointer in header directly

parent 44dab0eb
......@@ -38,7 +38,7 @@ protected:
void help() override;
private:
AutomaticAddContactsConfigureWidget *mConfigureWidget;
AutomaticAddContactsConfigureWidget *mConfigureWidget = nullptr;
};
#endif // AUTOMATICADDCONTACTSCONFIGUREDIALOG_H
......@@ -44,7 +44,7 @@ Q_SIGNALS:
private:
void initTab(KIdentityManagement::IdentityManager *identityManager);
QTabWidget *mTabWidget;
QTabWidget *mTabWidget = nullptr;
QList<AutomaticAddContactsTabWidget *> mListTabWidget;
};
......
......@@ -34,7 +34,7 @@ public:
void saveSettings() override;
void resetSettings() override;
private:
AutomaticAddContactsConfigureTab *mConfigureTab;
AutomaticAddContactsConfigureTab *mConfigureTab = nullptr;
};
#endif // CONFIRMADDRESSCONFIGUREWIDGET_H
......@@ -41,8 +41,8 @@ public:
Q_SIGNALS:
void configureChanged();
private:
QCheckBox *mEnabled;
Akonadi::CollectionComboBox *mCollectionCombobox;
QCheckBox *mEnabled = nullptr;
Akonadi::CollectionComboBox *mCollectionCombobox = nullptr;
uint mIdentity;
};
......
......@@ -33,10 +33,10 @@ public:
public Q_SLOTS:
void reloadConfig() override;
private:
bool mSendPlainText;
bool mCheckMailTransport;
bool mCheckDuplicateEmails;
bool mCheckSendAttachments;
bool mSendPlainText = false;
bool mCheckMailTransport = false;
bool mCheckDuplicateEmails = false;
bool mCheckSendAttachments = false;
};
#endif // CHECKBEFORESENDINTERFACE_H
......@@ -31,7 +31,7 @@ public:
bool changeSmtp() const;
private:
QCheckBox *mChangeSmtp;
QCheckBox *mChangeSmtp = nullptr;
};
#endif // CHECKBEFORESENDUPDATESMTPDIALOG_H
......@@ -36,7 +36,7 @@ protected:
void reset() override;
void help() override;
private:
CheckBeforeSendConfigureWidget *mConfigureWidget;
CheckBeforeSendConfigureWidget *mConfigureWidget = nullptr;
};
#endif // CHECKBEFORESENDCONFIGUREDIALOG_H
......@@ -36,10 +36,10 @@ public:
void resetSettings() override;
private:
QCheckBox *mCheckPlainTextMail;
QCheckBox *mCheckMailTransport;
QCheckBox *mCheckDuplicateEmailsAddresses;
QCheckBox *mCheckSendAttachments;
QCheckBox *mCheckPlainTextMail = nullptr;
QCheckBox *mCheckMailTransport = nullptr;
QCheckBox *mCheckDuplicateEmailsAddresses = nullptr;
QCheckBox *mCheckSendAttachments = nullptr;
};
#endif // CHECKBEFORESENDCONFIGUREWIDGET_H
......@@ -34,7 +34,7 @@ public:
private:
void readConfig();
void writeConfig();
QListWidget *mListWidget;
QListWidget *mListWidget = nullptr;
};
#endif // CHECKDUPLICATEEMAILSDIALOG_H
......@@ -33,7 +33,7 @@ public:
private:
void writeConfig();
void readConfig();
QListWidget *mListWidget;
QListWidget *mListWidget = nullptr;
};
#endif // CHECKATTACHMENTDIALOG_H
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