aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-10-10 06:58:10 +0200
committerMontel Laurent <[email protected]>2017-10-10 06:58:37 +0200
commit9aa8104750712243c429cd1d151960c7525ca4b1 (patch)
treed660d68d5d84e766cf8cd247dda8a5c864374a8c
parent73a88e576ab294b019aa9234ef96e5fc72f1c99c (diff)
Initialize values
-rw-r--r--src/akonadi-contacts/contactgroupeditor_p.h8
-rw-r--r--src/contact-editor/editor/generalinfoeditor/categorieseditwidget.cpp3
-rw-r--r--src/contact-editor/editor/generalinfoeditor/displaynameeditwidget.h2
3 files changed, 8 insertions, 5 deletions
diff --git a/src/akonadi-contacts/contactgroupeditor_p.h b/src/akonadi-contacts/contactgroupeditor_p.h
index 7bae6a5..6dbc190 100644
--- a/src/akonadi-contacts/contactgroupeditor_p.h
+++ b/src/akonadi-contacts/contactgroupeditor_p.h
@@ -54,14 +54,14 @@ public:
bool storeContactGroup(KContacts::ContactGroup &group);
void setupMonitor();
- ContactGroupEditor *mParent = nullptr;
- ContactGroupEditor::Mode mMode;
+ ContactGroupEditor::Mode mMode = ContactGroupEditor::Mode::CreateMode;
Item mItem;
- Monitor *mMonitor = nullptr;
Collection mDefaultCollection;
Ui::ContactGroupEditor mGui;
- bool mReadOnly;
+ ContactGroupEditor *mParent = nullptr;
ContactGroupModel *mGroupModel = nullptr;
+ Monitor *mMonitor = nullptr;
+ bool mReadOnly = false;
};
}
diff --git a/src/contact-editor/editor/generalinfoeditor/categorieseditwidget.cpp b/src/contact-editor/editor/generalinfoeditor/categorieseditwidget.cpp
index 67c7a8b..24db1b9 100644
--- a/src/contact-editor/editor/generalinfoeditor/categorieseditwidget.cpp
+++ b/src/contact-editor/editor/generalinfoeditor/categorieseditwidget.cpp
@@ -38,12 +38,15 @@ CategoriesEditWidget::~CategoriesEditWidget()
void CategoriesEditWidget::setReadOnly(bool readOnly)
{
+ Q_UNUSED(readOnly);
}
void CategoriesEditWidget::loadContact(const KContacts::Addressee &contact)
{
+ Q_UNUSED(contact);
}
void CategoriesEditWidget::storeContact(KContacts::Addressee &contact) const
{
+ Q_UNUSED(contact);
}
diff --git a/src/contact-editor/editor/generalinfoeditor/displaynameeditwidget.h b/src/contact-editor/editor/generalinfoeditor/displaynameeditwidget.h
index aad90eb..a6787bf 100644
--- a/src/contact-editor/editor/generalinfoeditor/displaynameeditwidget.h
+++ b/src/contact-editor/editor/generalinfoeditor/displaynameeditwidget.h
@@ -77,7 +77,7 @@ private:
KComboBox *mView = nullptr;
KContacts::Addressee mContact;
QWidget *mViewport = nullptr;
- DisplayType mDisplayType;
+ DisplayType mDisplayType = DisplayType::SimpleName;
int mAdditionalPopupWidth;
};