aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-10 12:56:12 +0200
committerMontel Laurent <[email protected]>2017-09-10 12:56:12 +0200
commit1c17b9b30f9adc90e5cb7d17ec7df4e64640de62 (patch)
tree413ea36572bd13df2d27ab9935dfb88f281ef1c2
parentf661eeefdd44e996f7cc4ff968d04e0d8d392210 (diff)
initialize pointer
-rw-r--r--src/akonadi-contacts/tests/emailaddressselectionwidgettest.h4
-rw-r--r--src/contact-editor/editor/contacteditorwidget.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/akonadi-contacts/tests/emailaddressselectionwidgettest.h b/src/akonadi-contacts/tests/emailaddressselectionwidgettest.h
index 797cda3..159ef06 100644
--- a/src/akonadi-contacts/tests/emailaddressselectionwidgettest.h
+++ b/src/akonadi-contacts/tests/emailaddressselectionwidgettest.h
@@ -39,8 +39,8 @@ private Q_SLOTS:
void showSelection();
private:
- Akonadi::EmailAddressSelectionWidget *mAddressesWidget;
- QTextBrowser *mInfo;
+ Akonadi::EmailAddressSelectionWidget *mAddressesWidget = nullptr;
+ QTextBrowser *mInfo = nullptr;
};
#endif
diff --git a/src/contact-editor/editor/contacteditorwidget.cpp b/src/contact-editor/editor/contacteditorwidget.cpp
index 623a596..837388d 100644
--- a/src/contact-editor/editor/contacteditorwidget.cpp
+++ b/src/contact-editor/editor/contacteditorwidget.cpp
@@ -80,7 +80,7 @@ public:
ContactEditor::PersonalEditorWidget *mPersonalEditorWidget = nullptr;
// widgets from custom fields group
- ContactEditor::CustomFieldsWidget *mCustomFieldsWidget;
+ ContactEditor::CustomFieldsWidget *mCustomFieldsWidget = nullptr;
// custom editor pages
QList<ContactEditor::ContactEditorPagePlugin *> mCustomPages;