Commit d47c5980 authored by Laurent Montel's avatar Laurent Montel 😁

Modernize code

parent f762f5c8
Pipeline #33698 passed with stage
in 43 minutes and 21 seconds
......@@ -52,9 +52,9 @@ private:
void closeLogFile();
QString mTemplateFileName;
QString mImportExportFileName;
PimDataBackupRestore *mPimDataBackupRestore = nullptr;
PimDataBackupRestore *const mPimDataBackupRestore;
LogInFile *mLogInFile = nullptr;
LogInfo *mLogInfo = nullptr;
LogInfo *const mLogInfo;
Mode mMode = Import;
bool mInProgress = false;
};
......
......@@ -106,11 +106,11 @@ protected:
QVector<ResourceFiles> mListResourceFile;
QString mTempDirName;
Utils::StoredTypes mTypeSelected;
ArchiveStorage *mArchiveStorage = nullptr;
const Utils::StoredTypes mTypeSelected;
ArchiveStorage *const mArchiveStorage;
QTemporaryDir *mTempDir = nullptr;
const KArchiveDirectory *mArchiveDirectory = nullptr;
int mNumberOfStep = -1;
const int mNumberOfStep = -1;
PimCommon::CreateResource *mCreateResource = nullptr;
QStringList mAgentPaths;
QVector<Utils::StoredType> mListStep;
......
......@@ -40,7 +40,7 @@ protected:
void exportFilters() override;
Q_REQUIRED_RESULT QVector<uint> listIdentityUoid() const override;
private:
KIdentityManagement::IdentityManager *mIdentityManager = nullptr;
KIdentityManagement::IdentityManager *const mIdentityManager;
};
#endif // ExportMailJob_H
......@@ -43,7 +43,7 @@ protected:
Q_REQUIRED_RESULT QString configLocation() const override;
private:
Q_REQUIRED_RESULT QString uniqueIdentityName(const QString &name);
KIdentityManagement::IdentityManager *mIdentityManager = nullptr;
KIdentityManagement::IdentityManager *const mIdentityManager;
};
#endif // ImportMailJob_H
......@@ -25,10 +25,10 @@ protected:
void run() override;
private:
QString mUrl;
QString mArchivePath;
QString mArchiveName;
KZip *mZip = nullptr;
const QString mUrl;
const QString mArchivePath;
const QString mArchiveName;
KZip *const mZip;
};
#endif // PIMDATABACKUPTHREAD_H
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