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

initialize variables

parent ea108c22
......@@ -37,7 +37,7 @@ public:
virtual int countDuplicates() const;
virtual QString topLevelFolder() const;
protected:
MailImporter::FilterInfo *mInfo;
MailImporter::FilterInfo *mInfo = nullptr;
};
}
#endif // FILTERIMPORTERBASE_H
......@@ -36,8 +36,8 @@ public:
m_filterInfoGui = nullptr;
}
bool m_removeDupMsg;
FilterInfoGui *m_filterInfoGui;
bool m_removeDupMsg = false;
FilterInfoGui *m_filterInfoGui = nullptr;
static bool s_terminateASAP;
};
......
......@@ -59,8 +59,8 @@ public:
QString author;
QString info;
QString mailDir;
MailImporter::FilterImporterBase *filterImporter;
MailImporter::FilterInfo *filterInfo;
MailImporter::FilterImporterBase *filterImporter = nullptr;
MailImporter::FilterInfo *filterInfo = nullptr;
};
Filter::Filter(const QString &name, const QString &author, const QString &info)
......
......@@ -35,7 +35,7 @@ public:
delete ui;
}
Ui::ImportMailsWidget *ui;
Ui::ImportMailsWidget *ui = nullptr;
};
ImportMailsWidget::ImportMailsWidget(QWidget *parent)
......
......@@ -40,7 +40,7 @@ public:
QString selectedProfile() const;
private:
Ui::SelectThunderbirdProfileWidget *ui;
Ui::SelectThunderbirdProfileWidget *ui = nullptr;
};
class MAILIMPORTER_TESTS_EXPORT SelectThunderbirdProfileDialog : public QDialog
......@@ -53,7 +53,7 @@ public:
void fillProfile(const QMap<QString, QString> &map, const QString &defaultProfile);
private:
SelectThunderbirdProfileWidget *mSelectProfile;
SelectThunderbirdProfileWidget *mSelectProfile = nullptr;
};
}
......
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