summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-08-30 07:22:39 +0200
committerMontel Laurent <[email protected]>2017-08-30 07:22:39 +0200
commit4633581cb739b15e5dfe499ca3e215e7f4a86c54 (patch)
tree0f4303b08d2bd524e6c2d37ad4f07e3cd8810725
parentea108c22d73ab0de8bfba18e346c587342fd26dc (diff)
initialize variables
-rw-r--r--src/mailimporter/filterimporterbase.h2
-rw-r--r--src/mailimporter/filterinfo.cpp4
-rw-r--r--src/mailimporter/filters.cpp4
-rw-r--r--src/mailimporter/importmailswidget.cpp2
-rw-r--r--src/mailimporter/selectthunderbirdprofilewidget.h4
5 files changed, 8 insertions, 8 deletions
diff --git a/src/mailimporter/filterimporterbase.h b/src/mailimporter/filterimporterbase.h
index 02ae8d8..a168209 100644
--- a/src/mailimporter/filterimporterbase.h
+++ b/src/mailimporter/filterimporterbase.h
@@ -37,7 +37,7 @@ public:
virtual int countDuplicates() const;
virtual QString topLevelFolder() const;
protected:
- MailImporter::FilterInfo *mInfo;
+ MailImporter::FilterInfo *mInfo = nullptr;
};
}
#endif // FILTERIMPORTERBASE_H
diff --git a/src/mailimporter/filterinfo.cpp b/src/mailimporter/filterinfo.cpp
index 567504d..95cd7f7 100644
--- a/src/mailimporter/filterinfo.cpp
+++ b/src/mailimporter/filterinfo.cpp
@@ -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;
};
diff --git a/src/mailimporter/filters.cpp b/src/mailimporter/filters.cpp
index 70dd408..d9b8463 100644
--- a/src/mailimporter/filters.cpp
+++ b/src/mailimporter/filters.cpp
@@ -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)
diff --git a/src/mailimporter/importmailswidget.cpp b/src/mailimporter/importmailswidget.cpp
index 59068d4..7e8ea81 100644
--- a/src/mailimporter/importmailswidget.cpp
+++ b/src/mailimporter/importmailswidget.cpp
@@ -35,7 +35,7 @@ public:
delete ui;
}
- Ui::ImportMailsWidget *ui;
+ Ui::ImportMailsWidget *ui = nullptr;
};
ImportMailsWidget::ImportMailsWidget(QWidget *parent)
diff --git a/src/mailimporter/selectthunderbirdprofilewidget.h b/src/mailimporter/selectthunderbirdprofilewidget.h
index 81bb848..221528a 100644
--- a/src/mailimporter/selectthunderbirdprofilewidget.h
+++ b/src/mailimporter/selectthunderbirdprofilewidget.h
@@ -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;
};
}