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

Use QStringLiteral

parent b5411e67
......@@ -361,7 +361,7 @@ void ExportMailJob::backupConfig()
tmp.open();
KConfig *archiveConfig = archivemailrc->copyTo(tmp.fileName());
const QStringList archiveList = archiveConfig->groupList().filter(QRegularExpression(QLatin1String("ArchiveMailCollection \\d+")));
const QStringList archiveList = archiveConfig->groupList().filter(QRegularExpression(QStringLiteral("ArchiveMailCollection \\d+")));
const QString archiveGroupPattern = QStringLiteral("ArchiveMailCollection ");
Q_FOREACH (const QString &str, archiveList) {
......@@ -493,7 +493,7 @@ void ExportMailJob::backupConfig()
if (kmailConfig->hasGroup(storageModelSelectedMessageStr)) {
KConfigGroup storageGroup = kmailConfig->group(storageModelSelectedMessageStr);
const QString storageModelSelectedPattern(QStringLiteral("MessageUniqueIdForStorageModel"));
const QStringList storageList = storageGroup.keyList().filter(QRegularExpression(QLatin1String("MessageUniqueIdForStorageModel\\d+")));
const QStringList storageList = storageGroup.keyList().filter(QRegularExpression(QStringLiteral("MessageUniqueIdForStorageModel\\d+")));
Q_FOREACH (const QString &str, storageList) {
bool found = false;
const int collectionId = str.rightRef(str.length() - storageModelSelectedPattern.length()).toInt(&found);
......
......@@ -183,7 +183,7 @@ void ImportMailJob::restoreTransports()
defaultTransport = group.readEntry(QStringLiteral("default-transport"), -1);
}
const QStringList transportList = transportConfig->groupList().filter(QRegularExpression(QLatin1String("Transport \\d+")));
const QStringList transportList = transportConfig->groupList().filter(QRegularExpression(QStringLiteral("Transport \\d+")));
Q_FOREACH (const QString &transport, transportList) {
KConfigGroup group = transportConfig->group(transport);
const int transportId = group.readEntry(QStringLiteral("id"), -1);
......@@ -1045,7 +1045,7 @@ void ImportMailJob::importFolderArchiveConfig(const KArchiveFile *archiveconfigu
copyToFile(archiveconfiguration, archiveconfigurationrc, filename, prefix);
KSharedConfig::Ptr archiveConfig = KSharedConfig::openConfig(archiveconfigurationrc);
const QStringList archiveList = archiveConfig->groupList().filter(QRegularExpression(QLatin1String("FolderArchiveAccount ")));
const QStringList archiveList = archiveConfig->groupList().filter(QRegularExpression(QStringLiteral("FolderArchiveAccount ")));
Q_FOREACH (const QString &str, archiveList) {
KConfigGroup oldGroup = archiveConfig->group(str);
......
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