Commit dbdcca9b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

initialize pointer

parent aa453cdc
......@@ -38,11 +38,11 @@ public:
void expunge(Akonadi::Collection::Id col, bool sync) override;
private:
KIdentityManagement::IdentityManager *mIdentityManager;
MessageComposer::MessageSender *mMessageSender;
MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor;
Akonadi::EntityTreeModel *mEntityTreeModel;
Akonadi::EntityMimeTypeFilterModel *mCollectionModel;
KIdentityManagement::IdentityManager *mIdentityManager = nullptr;
MessageComposer::MessageSender *mMessageSender = nullptr;
MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor = nullptr;
Akonadi::EntityTreeModel *mEntityTreeModel = nullptr;
Akonadi::EntityMimeTypeFilterModel *mCollectionModel = nullptr;
};
#endif
......@@ -255,9 +255,9 @@ private:
}
static QStringList collectNames(QAbstractItemModel *model);
EntityMimeTypeFilterModel *mCollectionModel;
QAbstractItemModel *mTopModel;
MailCommon::FolderTreeWidget *mFolderTreeWidget;
EntityMimeTypeFilterModel *mCollectionModel = nullptr;
QAbstractItemModel *mTopModel = nullptr;
MailCommon::FolderTreeWidget *mFolderTreeWidget = nullptr;
QStringList mFolderNames;
};
......
......@@ -59,17 +59,17 @@ private:
void saveAndExpire(Akonadi::Collection &collection, bool saveSettings, bool _expirenow);
private:
QCheckBox *expireReadMailCB;
KPluralHandlingSpinBox *expireReadMailSB;
QCheckBox *expireUnreadMailCB;
KPluralHandlingSpinBox *expireUnreadMailSB;
QRadioButton *moveToRB;
FolderRequester *folderSelector;
QRadioButton *deletePermanentlyRB;
QPushButton *expireNowPB;
QCheckBox *expireReadMailCB = nullptr;
KPluralHandlingSpinBox *expireReadMailSB = nullptr;
QCheckBox *expireUnreadMailCB = nullptr;
KPluralHandlingSpinBox *expireUnreadMailSB = nullptr;
QRadioButton *moveToRB = nullptr;
FolderRequester *folderSelector = nullptr;
QRadioButton *deletePermanentlyRB = nullptr;
QPushButton *expireNowPB = nullptr;
Akonadi::Collection mCollection;
bool mChanged;
bool mChanged = false;
};
AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY(CollectionExpiryPageFactory, CollectionExpiryPage)
......
......@@ -82,7 +82,7 @@ void CollectionGeneralPage::init(const Akonadi::Collection &collection)
|| Kernel::folderIsInbox(collection);
mIsResourceFolder = (collection.parentCollection() == Akonadi::Collection::root());
QLabel *label;
QLabel *label = nullptr;
QVBoxLayout *topLayout = new QVBoxLayout(this);
......
......@@ -59,18 +59,18 @@ private Q_SLOTS:
private:
void addLine(QWidget *parent, QVBoxLayout *layout);
QString mColorName;
PimCommon::ContentTypeWidget *mContentsComboBox;
PimCommon::IncidencesForWidget *mIncidencesForComboBox;
QCheckBox *mSharedSeenFlagsCheckBox;
QCheckBox *mNotifyOnNewMailCheckBox;
QCheckBox *mKeepRepliesInSameFolderCheckBox;
QCheckBox *mHideInSelectionDialogCheckBox;
QCheckBox *mUseDefaultIdentityCheckBox;
KLineEdit *mNameEdit;
KIdentityManagement::IdentityCombo *mIdentityComboBox;
PimCommon::ContentTypeWidget *mContentsComboBox = nullptr;
PimCommon::IncidencesForWidget *mIncidencesForComboBox = nullptr;
QCheckBox *mSharedSeenFlagsCheckBox = nullptr;
QCheckBox *mNotifyOnNewMailCheckBox = nullptr;
QCheckBox *mKeepRepliesInSameFolderCheckBox = nullptr;
QCheckBox *mHideInSelectionDialogCheckBox = nullptr;
QCheckBox *mUseDefaultIdentityCheckBox = nullptr;
KLineEdit *mNameEdit = nullptr;
KIdentityManagement::IdentityCombo *mIdentityComboBox = nullptr;
QSharedPointer<MailCommon::FolderSettings> mFolderCollection;
bool mIsLocalSystemFolder;
bool mIsResourceFolder;
bool mIsLocalSystemFolder = false;
bool mIsResourceFolder = false;
};
AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY(CollectionGeneralPageFactory, CollectionGeneralPage)
......
......@@ -35,7 +35,7 @@ public:
private:
void readConfig();
void writeConfig();
MailCommon::KMFilterAccountList *mAccountList;
MailCommon::KMFilterAccountList *mAccountList = nullptr;
};
}
#endif // FILTERACTIONMISSINGACCOUNTDIALOG_H
......@@ -58,9 +58,9 @@ private:
private:
void writeConfig();
void readConfig();
MailCommon::FolderRequester *mFolderRequester;
QListWidget *mListwidget;
QPushButton *mOkButton;
MailCommon::FolderRequester *mFolderRequester = nullptr;
QListWidget *mListwidget = nullptr;
QPushButton *mOkButton = nullptr;
};
#endif /* FILTERACTIONMISSINGARGUMENTDIALOG_H */
......@@ -37,7 +37,7 @@ public:
private:
void writeConfig();
void readConfig();
KIdentityManagement::IdentityCombo *mComboBoxIdentity;
KIdentityManagement::IdentityCombo *mComboBoxIdentity = nullptr;
};
}
......
......@@ -34,7 +34,7 @@ public:
private:
void readConfig();
void writeConfig();
KUrlRequester *mUrlWidget;
KUrlRequester *mUrlWidget = nullptr;
};
}
......
......@@ -41,7 +41,7 @@ private:
enum TypeData {
UrlData = Qt::UserRole + 1
};
QListWidget *mTagList;
QListWidget *mTagList = nullptr;
};
}
#endif // FILTERACTIONMISSINGTAGDIALOG_H
......@@ -35,7 +35,7 @@ public:
private:
void readConfig();
void writeConfig();
KComboBox *mComboBoxTemplate;
KComboBox *mComboBoxTemplate = nullptr;
};
}
#endif // FILTERACTIONMISSINGTEMPLATEDIALOG_H
......@@ -37,7 +37,7 @@ public:
private:
void writeConfig();
void readConfig();
MailTransport::TransportComboBox *mComboBoxTransport;
MailTransport::TransportComboBox *mComboBoxTransport = nullptr;
};
}
......
......@@ -37,7 +37,7 @@ public:
private:
void readConfig();
void writeConfig();
SelectThunderbirdFilterFilesWidget *mSelectFilterFilesWidget;
SelectThunderbirdFilterFilesWidget *mSelectFilterFilesWidget = nullptr;
};
}
......
......@@ -47,7 +47,7 @@ private Q_SLOTS:
void slotUrlChanged(const QString &path);
void slotItemSelectionChanged();
private:
Ui::SelectThunderbirdFilterFilesWidget *ui;
Ui::SelectThunderbirdFilterFilesWidget *ui = nullptr;
};
}
#endif // SELECTTHUNDERBIRDFILTERFILESWIDGET_H
......@@ -62,7 +62,7 @@ private:
void initializeTagList();
mutable QMap<QUrl, QString> mList;
QString mParameter;
mutable PimCommon::MinimumComboBox *mComboBox;
mutable PimCommon::MinimumComboBox *mComboBox = nullptr;
};
}
......
......@@ -45,7 +45,7 @@ public:
bool isEmpty() const override;
QString informationAboutNotValidAction() const override;
private:
mutable Phonon::MediaObject *mPlayer;
mutable Phonon::MediaObject *mPlayer = nullptr;
};
}
......
......@@ -66,11 +66,11 @@ public:
FilterActionWidget *q;
QList<MailCommon::FilterAction *> mActionList;
KComboBox *mComboBox;
QPushButton *mAdd;
QPushButton *mRemove;
KComboBox *mComboBox = nullptr;
QPushButton *mAdd = nullptr;
QPushButton *mRemove = nullptr;
QGridLayout *mLayout;
QGridLayout *mLayout = nullptr;
};
void FilterActionWidget::Private::setFilterAction(QWidget *widget)
......
......@@ -109,7 +109,7 @@ public:
protected:
QString mParameter;
private:
mutable FilterActionWithUrlHelpButton *mHelpButton;
mutable FilterActionWithUrlHelpButton *mHelpButton = nullptr;
private Q_SLOTS:
void slotHelp();
};
......
......@@ -40,7 +40,7 @@ private Q_SLOTS:
private:
void readConfig();
void writeConfig();
KPIMTextEdit::PlainTextEditorWidget *mEditor;
KPIMTextEdit::PlainTextEditorWidget *mEditor = nullptr;
};
}
......
......@@ -52,11 +52,11 @@ public:
void expunge(Akonadi::Collection::Id col, bool sync) override;
private:
KIdentityManagement::IdentityManager *mIdentityManager;
MessageComposer::MessageSender *mMessageSender;
MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor;
Akonadi::EntityTreeModel *mEntityTreeModel;
Akonadi::EntityMimeTypeFilterModel *mCollectionModel;
KIdentityManagement::IdentityManager *mIdentityManager = nullptr;
MessageComposer::MessageSender *mMessageSender = nullptr;
MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor = nullptr;
Akonadi::EntityTreeModel *mEntityTreeModel = nullptr;
Akonadi::EntityMimeTypeFilterModel *mCollectionModel = nullptr;
};
#endif
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