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

initialize pointer

parent 6f0da3d1
......@@ -42,7 +42,7 @@ Q_SIGNALS:
void importAddressbookClicked();
private:
Ui::ImportAddressbookPage *ui;
Ui::ImportAddressbookPage *ui = nullptr;
};
#endif // IMPORTADDRESSBOOKPAGE_H
......@@ -42,7 +42,7 @@ Q_SIGNALS:
void importCalendarClicked();
private:
Ui::ImportCalendarPage *ui;
Ui::ImportCalendarPage *ui = nullptr;
};
#endif // IMPORTCALENDARPAGE_H
......@@ -42,7 +42,7 @@ public:
QWidget *parent() const override;
private:
ImportMailPage *m_parent;
ImportMailPage *m_parent = nullptr;
};
#endif /* IMPORTFILTERINFOGUI_H */
......@@ -41,7 +41,7 @@ Q_SIGNALS:
void importFiltersClicked();
private:
Ui::ImportFilterPage *ui;
Ui::ImportFilterPage *ui = nullptr;
};
#endif // IMPORTFILTERPAGE_H
......@@ -36,7 +36,7 @@ public:
void addImportError(const QString &log);
private:
Ui::ImportFinishPage *ui;
Ui::ImportFinishPage *ui = nullptr;
};
#endif // IMPORTFINISHPAGE_H
......@@ -49,7 +49,7 @@ Q_SIGNALS:
private:
void collectionChanged(const Akonadi::Collection &collection);
Ui::ImportMailPage *ui;
Ui::ImportMailPage *ui = nullptr;
};
#endif // IMPORTMAILPAGE_H
......@@ -40,7 +40,7 @@ Q_SIGNALS:
void importSettingsClicked();
private:
Ui::ImportSettingPage *ui;
Ui::ImportSettingPage *ui = nullptr;
};
#endif // IMPORTSETTINGPAGE_H
......@@ -44,7 +44,7 @@ private:
void slotEverythingClicked(bool clicked);
void slotComponentClicked();
LibImportWizard::AbstractImporter::TypeSupportedOptions mOptions;
Ui::SelectComponentPage *ui;
Ui::SelectComponentPage *ui = nullptr;
};
#endif // SELECTCOMPONENTPAGE_H
......@@ -49,7 +49,7 @@ private:
void slotItemDoubleClicked(QListWidgetItem *item);
void slotSelectManualSelectionChanged(bool b);
Ui::SelectProgramPage *ui;
Ui::SelectProgramPage *ui = nullptr;
};
#endif // SELECTPROGRAMPAGE_H
......@@ -41,14 +41,13 @@ class ImportMailPluginManagerInfo
{
public:
ImportMailPluginManagerInfo()
: plugin(nullptr)
{
}
QString metaDataFileNameBaseName;
QString metaDataFileName;
PluginUtilData pluginData;
LibImportWizard::AbstractImporter *plugin;
LibImportWizard::AbstractImporter *plugin = nullptr;
};
class ImportMailPluginManager : public QObject
......
......@@ -49,7 +49,6 @@
ImportWizard::ImportWizard(WizardMode mode, QWidget *parent)
: KAssistantDialog(parent)
, mMode(mode)
, mSelectedPim(nullptr)
{
setModal(true);
setWindowTitle(i18n("PIM Import Tool"));
......
......@@ -95,32 +95,32 @@ private:
QMap<QString, LibImportWizard::AbstractImporter *> mlistImport;
WizardMode mMode;
LibImportWizard::AbstractImporter *mSelectedPim;
KPageWidgetItem *mSelectProgramPageItem;
KPageWidgetItem *mSelectComponentPageItem;
KPageWidgetItem *mImportMailPageItem;
KPageWidgetItem *mImportFilterPageItem;
KPageWidgetItem *mImportSettingPageItem;
KPageWidgetItem *mImportAddressbookPageItem;
KPageWidgetItem *mImportCalendarPageItem;
KPageWidgetItem *mImportFinishPageItem;
SelectProgramPage *mSelectProgramPage;
SelectComponentPage *mSelectComponentPage;
ImportMailPage *mImportMailPage;
ImportFilterPage *mImportFilterPage;
ImportSettingPage *mImportSettingPage;
ImportAddressbookPage *mImportAddressbookPage;
ImportFinishPage *mImportFinishPage;
ImportCalendarPage *mImportCalendarPage;
ManualSelectFilterPage *mSelfilterpage;
ManualImportMailPage *mImportpage;
KPageWidgetItem *mSelfilterpageItem;
KPageWidgetItem *mImportpageItem;
LibImportWizard::AbstractDisplayInfo *mAbstractDisplayInfo;
LibImportWizard::AbstractImporter *mSelectedPim = nullptr;
KPageWidgetItem *mSelectProgramPageItem = nullptr;
KPageWidgetItem *mSelectComponentPageItem = nullptr;
KPageWidgetItem *mImportMailPageItem = nullptr;
KPageWidgetItem *mImportFilterPageItem = nullptr;
KPageWidgetItem *mImportSettingPageItem = nullptr;
KPageWidgetItem *mImportAddressbookPageItem = nullptr;
KPageWidgetItem *mImportCalendarPageItem = nullptr;
KPageWidgetItem *mImportFinishPageItem = nullptr;
SelectProgramPage *mSelectProgramPage = nullptr;
SelectComponentPage *mSelectComponentPage = nullptr;
ImportMailPage *mImportMailPage = nullptr;
ImportFilterPage *mImportFilterPage = nullptr;
ImportSettingPage *mImportSettingPage = nullptr;
ImportAddressbookPage *mImportAddressbookPage = nullptr;
ImportFinishPage *mImportFinishPage = nullptr;
ImportCalendarPage *mImportCalendarPage = nullptr;
ManualSelectFilterPage *mSelfilterpage = nullptr;
ManualImportMailPage *mImportpage = nullptr;
KPageWidgetItem *mSelfilterpageItem = nullptr;
KPageWidgetItem *mImportpageItem = nullptr;
LibImportWizard::AbstractDisplayInfo *mAbstractDisplayInfo = nullptr;
};
#endif /* IMPORTWIZARD_H */
......@@ -43,7 +43,7 @@ public:
QWidget *parentWidget() const override;
private:
ImportWizard *mImportWizard;
ImportWizard *mImportWizard = nullptr;
};
#endif // IMPORTWIZARDDISPLAYINFO_H
......@@ -56,10 +56,10 @@ public:
void expunge(Akonadi::Collection::Id col, bool sync) override;
private:
KIdentityManagement::IdentityManager *mIdentityManager;
MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor;
Akonadi::EntityTreeModel *mEntityTreeModel;
Akonadi::EntityMimeTypeFilterModel *mCollectionModel;
KIdentityManagement::IdentityManager *mIdentityManager = nullptr;
MailCommon::FolderCollectionMonitor *mFolderCollectionMonitor = nullptr;
Akonadi::EntityTreeModel *mEntityTreeModel = nullptr;
Akonadi::EntityMimeTypeFilterModel *mCollectionModel = nullptr;
};
#endif
......@@ -31,7 +31,6 @@
using namespace Akonadi;
using namespace LibImportWizard;
AbstractBase::AbstractBase()
: mAbstractDisplayInfo(nullptr)
{
mCreateResource = new PimCommon::CreateResource();
connect(mCreateResource, &PimCommon::CreateResource::createResourceInfo, this, &AbstractBase::slotCreateResourceInfo);
......
......@@ -46,12 +46,12 @@ protected:
virtual void addImportInfo(const QString &log) = 0;
virtual void addImportError(const QString &log) = 0;
AbstractDisplayInfo *mAbstractDisplayInfo;
AbstractDisplayInfo *mAbstractDisplayInfo = nullptr;
private:
void slotCreateResourceError(const QString &);
void slotCreateResourceInfo(const QString &);
PimCommon::CreateResource *mCreateResource;
PimCommon::CreateResource *mCreateResource = nullptr;
};
}
#endif // ABSTRACTBASE_H
......@@ -31,8 +31,6 @@ using namespace LibImportWizard;
AbstractImporter::AbstractImporter(QObject *parent)
: QObject(parent)
, mAbstractDisplayInfo(nullptr)
, mParentWidget(nullptr)
{
}
......
......@@ -85,8 +85,8 @@ protected:
void addImportCalendarInfo(const QString &log) const;
QString mPath;
AbstractDisplayInfo *mAbstractDisplayInfo;
QWidget *mParentWidget;
AbstractDisplayInfo *mAbstractDisplayInfo = nullptr;
QWidget *mParentWidget = nullptr;
};
}
......
......@@ -69,7 +69,7 @@ protected:
void addToManualCheck(const QString &agentIdentifyName, bool manualCheck);
int readKmailSettings(const QString &groupName, const QString &key);
KIdentityManagement::IdentityManager *mManager;
KIdentityManagement::IdentityManager *mManager = nullptr;
KSharedConfigPtr mKmailConfig;
};
......
......@@ -41,8 +41,8 @@ public:
QWidget *parent() const override;
private:
QWidget *m_parent;
ManualImportMailPage *mManualImportMailPage;
QWidget *m_parent = nullptr;
ManualImportMailPage *mManualImportMailPage = nullptr;
};
#endif /* IMPORTWIZARDFILTERINFOGUI_H */
......@@ -29,7 +29,7 @@ public:
Ui::ManualImportMailPage *widget() const;
private:
Ui::ManualImportMailPage *mWidget;
Ui::ManualImportMailPage *mWidget = nullptr;
};
#endif
......@@ -41,7 +41,7 @@ private Q_SLOTS:
void filterSelected(int i);
private:
Ui::ManualSelectFilterPage *mWidget;
Ui::ManualSelectFilterPage *mWidget = nullptr;
QList<MailImporter::Filter *> mFilterList;
};
......
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