Commit 14c0d439 authored by Laurent Montel's avatar Laurent Montel 😁

Use QLatin1String

parent f53af1c3
......@@ -39,8 +39,8 @@ ImportImapSettingsAkonadiCheckJob::~ImportImapSettingsAkonadiCheckJob()
bool ImportImapSettingsAkonadiCheckJob::resourceCanHaveSieveSupport(const QString &filename) const
{
return filename.startsWith(QStringLiteral("akonadi_kolab_resource"))
|| filename.startsWith(QStringLiteral("akonadi_imap_resource"));
return filename.startsWith(QLatin1String("akonadi_kolab_resource"))
|| filename.startsWith(QLatin1String("akonadi_imap_resource"));
}
void ImportImapSettingsAkonadiCheckJob::start()
......
......@@ -104,7 +104,7 @@ bool ImportImapSettingsThunderbirdCheckJob::importSettings(const QString &direct
QTextStream stream(&file);
while (!stream.atEnd()) {
const QString line = stream.readLine();
if (line.startsWith(QStringLiteral("user_pref"))) {
if (line.startsWith(QLatin1String("user_pref"))) {
if (line.contains(QStringLiteral("mail.server."))
|| line.contains(QStringLiteral("mail.account."))
|| line.contains(QStringLiteral("mail.accountmanager."))
......@@ -114,9 +114,9 @@ bool ImportImapSettingsThunderbirdCheckJob::importSettings(const QString &direct
} else {
if (!line.startsWith(QLatin1Char('#'))
&& line.isEmpty()
&& line.startsWith(QStringLiteral("/*"))
&& line.startsWith(QStringLiteral(" */"))
&& line.startsWith(QStringLiteral(" *"))) {
&& line.startsWith(QLatin1String("/*"))
&& line.startsWith(QLatin1String(" */"))
&& line.startsWith(QLatin1String(" *"))) {
qCDebug(SIEVEEDITOR_LOG) << " unstored line :" << line;
}
}
......
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