Commit 44b034ca authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Modernize code

parent 6c0f5d18
Pipeline #33198 passed with stage
in 9 minutes and 32 seconds
......@@ -30,7 +30,7 @@ public:
Q_REQUIRED_RESULT virtual int countDuplicates() const;
Q_REQUIRED_RESULT virtual QString topLevelFolder() const;
protected:
MailImporter::FilterInfo *mInfo = nullptr;
MailImporter::FilterInfo *const mInfo;
};
}
#endif // FILTERIMPORTERBASE_H
......@@ -27,8 +27,6 @@ public:
: name(_name)
, author(_author)
, info(_info)
, filterImporter(nullptr)
, filterInfo(nullptr)
{
}
......
......@@ -14,12 +14,6 @@ using namespace MailImporter;
class MailImporter::FilterBalsaPrivate
{
public:
FilterBalsaPrivate()
: mImportDirDone(0)
, mTotalDir(0)
{
}
int mImportDirDone = 0;
int mTotalDir = 0;
};
......
......@@ -14,10 +14,6 @@ using namespace MailImporter;
class MailImporter::FilterEvolution_v3Private
{
public:
FilterEvolution_v3Private()
{
}
int mImportDirDone = -1;
int mTotalDir = -1;
};
......
......@@ -18,10 +18,6 @@ using namespace MailImporter;
class MailImporter::FilterKMail_maildirPrivate
{
public:
FilterKMail_maildirPrivate()
{
}
int mImportDirDone = 0;
int mTotalDir = 0;
};
......
......@@ -24,10 +24,6 @@ using namespace MailImporter;
class MailImporter::FilterKMailArchivePrivate
{
public:
FilterKMailArchivePrivate()
{
}
int mTotalFiles = 0;
int mFilesDone = 0;
};
......
......@@ -18,10 +18,6 @@ using namespace MailImporter;
class MailImporter::FilterLNotesPrivate
{
public:
FilterLNotesPrivate()
{
}
/** the working directory */
QDir dir;
/** which file (of d->totalFiles) is now in the work? */
......
......@@ -21,10 +21,6 @@ using namespace MailImporter;
class MailImporter::FilterMailAppPrivate
{
public:
FilterMailAppPrivate()
{
}
QStringList mMboxFiles;
};
......
......@@ -20,10 +20,6 @@ using namespace MailImporter;
class MailImporter::FilterSylpheedPrivate
{
public:
FilterSylpheedPrivate()
{
}
int mImportDirDone = 0;
int mTotalDir = 0;
};
......
......@@ -19,10 +19,6 @@ using namespace MailImporter;
class MailImporter::FilterTheBatPrivate
{
public:
FilterTheBatPrivate()
{
}
int mImportDirDone = 0;
int mTotalDir = 0;
};
......
......@@ -24,7 +24,7 @@ public:
delete ui;
}
Ui::ImportMailsWidget *ui = nullptr;
Ui::ImportMailsWidget *const ui;
};
ImportMailsWidget::ImportMailsWidget(QWidget *parent)
......
......@@ -29,7 +29,7 @@ public:
Q_REQUIRED_RESULT QString selectedProfile() const;
private:
Ui::SelectThunderbirdProfileWidget *ui = nullptr;
Ui::SelectThunderbirdProfileWidget *const ui;
};
class MAILIMPORTER_TESTS_EXPORT SelectThunderbirdProfileDialog : public QDialog
......
......@@ -25,7 +25,6 @@ using namespace MailImporter;
FilterImporterAkonadi::FilterImporterAkonadi(MailImporter::FilterInfo *info)
: MailImporter::FilterImporterBase(info)
, mCountDuplicates(0)
{
}
......
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