summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-05 13:18:30 +0200
committerMontel Laurent <[email protected]>2017-09-05 13:18:30 +0200
commit4ae4d7545011cf173d37cd643096de011336c474 (patch)
tree06ccc6ae0baa83da685f3d390c0d4d71156431cc
parent44dab0eb6a9636ad068f20d43ec83e0e41ccb4bf (diff)
Initialize pointer in header directly
-rw-r--r--kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsconfiguredialog.h2
-rw-r--r--kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsconfiguretab.h2
-rw-r--r--kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsconfigurewidget.h2
-rw-r--r--kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactstabwidget.h4
-rw-r--r--kmail/editorsendcheckplugins/checkbeforesend/checkbeforesendinterface.h8
-rw-r--r--kmail/editorsendcheckplugins/checkbeforesend/checkbeforesendupdatesmtpdialog.h2
-rw-r--r--kmail/editorsendcheckplugins/checkbeforesend/configurewidget/checkbeforesendconfiguredialog.h2
-rw-r--r--kmail/editorsendcheckplugins/checkbeforesend/configurewidget/checkbeforesendconfigurewidget.h8
-rw-r--r--kmail/editorsendcheckplugins/checkbeforesend/duplicateemails/checkduplicateemailsdialog.h2
-rw-r--r--kmail/editorsendcheckplugins/checkbeforesend/sendattachments/checkattachmentdialog.h2
10 files changed, 17 insertions, 17 deletions
diff --git a/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsconfiguredialog.h b/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsconfiguredialog.h
index 02ac9e5..1cfe618 100644
--- a/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsconfiguredialog.h
+++ b/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsconfiguredialog.h
@@ -38,7 +38,7 @@ protected:
void help() override;
private:
- AutomaticAddContactsConfigureWidget *mConfigureWidget;
+ AutomaticAddContactsConfigureWidget *mConfigureWidget = nullptr;
};
#endif // AUTOMATICADDCONTACTSCONFIGUREDIALOG_H
diff --git a/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsconfiguretab.h b/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsconfiguretab.h
index af15d37..ebc3044 100644
--- a/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsconfiguretab.h
+++ b/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsconfiguretab.h
@@ -44,7 +44,7 @@ Q_SIGNALS:
private:
void initTab(KIdentityManagement::IdentityManager *identityManager);
- QTabWidget *mTabWidget;
+ QTabWidget *mTabWidget = nullptr;
QList<AutomaticAddContactsTabWidget *> mListTabWidget;
};
diff --git a/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsconfigurewidget.h b/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsconfigurewidget.h
index e6998f1..9425030 100644
--- a/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsconfigurewidget.h
+++ b/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsconfigurewidget.h
@@ -34,7 +34,7 @@ public:
void saveSettings() override;
void resetSettings() override;
private:
- AutomaticAddContactsConfigureTab *mConfigureTab;
+ AutomaticAddContactsConfigureTab *mConfigureTab = nullptr;
};
#endif // CONFIRMADDRESSCONFIGUREWIDGET_H
diff --git a/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactstabwidget.h b/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactstabwidget.h
index 818c306..772cc32 100644
--- a/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactstabwidget.h
+++ b/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactstabwidget.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;
};
diff --git a/kmail/editorsendcheckplugins/checkbeforesend/checkbeforesendinterface.h b/kmail/editorsendcheckplugins/checkbeforesend/checkbeforesendinterface.h
index 0acfdd0..2039b95 100644
--- a/kmail/editorsendcheckplugins/checkbeforesend/checkbeforesendinterface.h
+++ b/kmail/editorsendcheckplugins/checkbeforesend/checkbeforesendinterface.h
@@ -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
diff --git a/kmail/editorsendcheckplugins/checkbeforesend/checkbeforesendupdatesmtpdialog.h b/kmail/editorsendcheckplugins/checkbeforesend/checkbeforesendupdatesmtpdialog.h
index d597350..abf133a 100644
--- a/kmail/editorsendcheckplugins/checkbeforesend/checkbeforesendupdatesmtpdialog.h
+++ b/kmail/editorsendcheckplugins/checkbeforesend/checkbeforesendupdatesmtpdialog.h
@@ -31,7 +31,7 @@ public:
bool changeSmtp() const;
private:
- QCheckBox *mChangeSmtp;
+ QCheckBox *mChangeSmtp = nullptr;
};
#endif // CHECKBEFORESENDUPDATESMTPDIALOG_H
diff --git a/kmail/editorsendcheckplugins/checkbeforesend/configurewidget/checkbeforesendconfiguredialog.h b/kmail/editorsendcheckplugins/checkbeforesend/configurewidget/checkbeforesendconfiguredialog.h
index 6017cd8..6af5205 100644
--- a/kmail/editorsendcheckplugins/checkbeforesend/configurewidget/checkbeforesendconfiguredialog.h
+++ b/kmail/editorsendcheckplugins/checkbeforesend/configurewidget/checkbeforesendconfiguredialog.h
@@ -36,7 +36,7 @@ protected:
void reset() override;
void help() override;
private:
- CheckBeforeSendConfigureWidget *mConfigureWidget;
+ CheckBeforeSendConfigureWidget *mConfigureWidget = nullptr;
};
#endif // CHECKBEFORESENDCONFIGUREDIALOG_H
diff --git a/kmail/editorsendcheckplugins/checkbeforesend/configurewidget/checkbeforesendconfigurewidget.h b/kmail/editorsendcheckplugins/checkbeforesend/configurewidget/checkbeforesendconfigurewidget.h
index 89c0164..49ae16e 100644
--- a/kmail/editorsendcheckplugins/checkbeforesend/configurewidget/checkbeforesendconfigurewidget.h
+++ b/kmail/editorsendcheckplugins/checkbeforesend/configurewidget/checkbeforesendconfigurewidget.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
diff --git a/kmail/editorsendcheckplugins/checkbeforesend/duplicateemails/checkduplicateemailsdialog.h b/kmail/editorsendcheckplugins/checkbeforesend/duplicateemails/checkduplicateemailsdialog.h
index abfbbf4..09a0a5c 100644
--- a/kmail/editorsendcheckplugins/checkbeforesend/duplicateemails/checkduplicateemailsdialog.h
+++ b/kmail/editorsendcheckplugins/checkbeforesend/duplicateemails/checkduplicateemailsdialog.h
@@ -34,7 +34,7 @@ public:
private:
void readConfig();
void writeConfig();
- QListWidget *mListWidget;
+ QListWidget *mListWidget = nullptr;
};
#endif // CHECKDUPLICATEEMAILSDIALOG_H
diff --git a/kmail/editorsendcheckplugins/checkbeforesend/sendattachments/checkattachmentdialog.h b/kmail/editorsendcheckplugins/checkbeforesend/sendattachments/checkattachmentdialog.h
index e5ccbed..169edec 100644
--- a/kmail/editorsendcheckplugins/checkbeforesend/sendattachments/checkattachmentdialog.h
+++ b/kmail/editorsendcheckplugins/checkbeforesend/sendattachments/checkattachmentdialog.h
@@ -33,7 +33,7 @@ public:
private:
void writeConfig();
void readConfig();
- QListWidget *mListWidget;
+ QListWidget *mListWidget = nullptr;
};
#endif // CHECKATTACHMENTDIALOG_H