Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

Use QLatin1String

parent 299ce421
......@@ -69,7 +69,7 @@ bool ImportImapSettingsAkonadiCheckJob::importSettings(const QString &directory,
return false;
}
SieveEditorUtil::SieveServerConfig config;
bool isKolabSettings = filePath.contains(QStringLiteral("/akonadi_kolab_resource"));
bool isKolabSettings = filePath.contains(QLatin1String("/akonadi_kolab_resource"));
KSharedConfigPtr resourceConfig = KSharedConfig::openConfig(filePath);
KConfigGroup sieveGroup = resourceConfig->group(QStringLiteral("siever"));
......
......@@ -105,10 +105,10 @@ bool ImportImapSettingsThunderbirdCheckJob::importSettings(const QString &direct
while (!stream.atEnd()) {
const QString line = stream.readLine();
if (line.startsWith(QLatin1String("user_pref"))) {
if (line.contains(QStringLiteral("mail.server."))
|| line.contains(QStringLiteral("mail.account."))
|| line.contains(QStringLiteral("mail.accountmanager."))
|| line.contains(QStringLiteral("extensions.sieve.account."))) {
if (line.contains(QLatin1String("mail.server."))
|| line.contains(QLatin1String("mail.account."))
|| line.contains(QLatin1String("mail.accountmanager."))
|| line.contains(QLatin1String("extensions.sieve.account."))) {
insertIntoMap(line);
}
} else {
......
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