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

const'ify bool

parent 6b5c4332
Pipeline #40581 failed with stage
in 9 minutes and 43 seconds
......@@ -69,11 +69,11 @@ bool ImportImapSettingsAkonadiCheckJob::importSettings(const QString &directory,
return false;
}
SieveEditorUtil::SieveServerConfig config;
bool isKolabSettings = filePath.contains(QLatin1String("/akonadi_kolab_resource"));
const bool isKolabSettings = filePath.contains(QLatin1String("/akonadi_kolab_resource"));
KSharedConfigPtr resourceConfig = KSharedConfig::openConfig(filePath);
KConfigGroup sieveGroup = resourceConfig->group(QStringLiteral("siever"));
bool hasSieveSupport = sieveGroup.readEntry(QStringLiteral("SieveSupport"), isKolabSettings ? true : false);
const bool hasSieveSupport = sieveGroup.readEntry(QStringLiteral("SieveSupport"), isKolabSettings ? true : false);
if (hasSieveSupport) {
bool reuseImapSettings = sieveGroup.readEntry(QStringLiteral("SieveReuseConfig"), true);
KConfigGroup networkGroup = resourceConfig->group(QStringLiteral("network"));
......
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