Commit 5fe8bfbc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Clean up code

parent f1a7a4de
Pipeline #31873 passed with stage
in 36 minutes and 11 seconds
...@@ -19,18 +19,12 @@ using namespace PimCommon; ...@@ -19,18 +19,12 @@ using namespace PimCommon;
class PimCommon::MigrateApplicationFilesPrivate class PimCommon::MigrateApplicationFilesPrivate
{ {
public: public:
MigrateApplicationFilesPrivate()
: mMigrateApplicationVersion(1)
, mCurrentConfigVersion(0)
{
}
QVector<MigrateFileInfo> mMigrateInfoList; QVector<MigrateFileInfo> mMigrateInfoList;
QString mConfigFileName; QString mConfigFileName;
QString mApplicationName; QString mApplicationName;
Kdelibs4Migration mMigration; Kdelibs4Migration mMigration;
int mMigrateApplicationVersion; int mMigrateApplicationVersion = 1;
int mCurrentConfigVersion; int mCurrentConfigVersion = 0;
}; };
MigrateApplicationFiles::MigrateApplicationFiles(QObject *parent) MigrateApplicationFiles::MigrateApplicationFiles(QObject *parent)
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
using namespace PimCommon; using namespace PimCommon;
MigrateFileInfo::MigrateFileInfo() MigrateFileInfo::MigrateFileInfo()
: mVersion(-1)
, mFolder(false)
{ {
} }
......
...@@ -42,8 +42,8 @@ private: ...@@ -42,8 +42,8 @@ private:
QStringList mFilePattern; QStringList mFilePattern;
QString mType; QString mType;
QString mPath; QString mPath;
int mVersion; int mVersion = -1;
bool mFolder; bool mFolder = false;
}; };
} }
......
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
using namespace PimCommon; using namespace PimCommon;
EmailValidator::EmailValidator(QObject *parent) : QValidator(parent) EmailValidator::EmailValidator(QObject *parent)
: QValidator(parent)
{ {
} }
......
...@@ -280,7 +280,7 @@ public: ...@@ -280,7 +280,7 @@ public:
QString knewstuffConfigName; QString knewstuffConfigName;
bool dirty; bool dirty;
KSharedConfig::Ptr config; KSharedConfig::Ptr config;
TemplateListWidget *q; TemplateListWidget * const q;
}; };
TemplateListWidget::TemplateListWidget(const QString &configName, QWidget *parent) TemplateListWidget::TemplateListWidget(const QString &configName, QWidget *parent)
......
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