Commit 26270830 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify

parent 39ae5c10
Pipeline #58726 canceled with stage
......@@ -75,7 +75,7 @@ QUrl ArchiveMailInfo::realUrl(const QString &folderName, bool &dirExist) const
const QString path = dirPath + QLatin1Char('/') + i18nc("Start of the filename for a mail archive file", "Archive") + QLatin1Char('_')
+ normalizeFolderName(folderName) + QLatin1Char('_') + QDate::currentDate().toString(Qt::ISODate) + QString::fromLatin1(extensions[mArchiveType]);
QUrl real(QUrl::fromLocalFile(path));
const QUrl real(QUrl::fromLocalFile(path));
return real;
}
......
......@@ -52,7 +52,7 @@ public:
}
private:
ArchiveMailInfo *mInfo = nullptr;
ArchiveMailManager *mManager = nullptr;
ArchiveMailInfo *const mInfo;
ArchiveMailManager *const mManager;
};
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