diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2021-02-22 19:25:40 +0200 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2021-02-22 21:28:00 +0200 |
commit | 48c132be8aa983165126b0641a083848dd5c6620 (patch) | |
tree | e86e514536a914c09c8e83c12d0ad46a369a86d2 /src/core/kconfig.cpp | |
parent | 8bed00ab34e31f2b9c70026d418d923913325798 (diff) | |
download | kconfig-48c132be8aa983165126b0641a083848dd5c6620.tar.gz kconfig-48c132be8aa983165126b0641a083848dd5c6620.tar.bz2 |
Fix formatting in a couple of places after running clang-format
NO_CHANGELOG
Diffstat (limited to 'src/core/kconfig.cpp')
-rw-r--r-- | src/core/kconfig.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/kconfig.cpp b/src/core/kconfig.cpp index 2da1dd48..ab6ac5c5 100644 --- a/src/core/kconfig.cpp +++ b/src/core/kconfig.cpp @@ -756,8 +756,8 @@ void KConfigPrivate::parseConfigFiles() } } else { QExplicitlySharedDataPointer<KConfigBackend> backend = KConfigBackend::create(file); - bFileImmutable = (backend->parseConfig(utf8Locale, entryMap, KConfigBackend::ParseDefaults | KConfigBackend::ParseExpansions) - == KConfigBackend::ParseImmutable); + constexpr auto parseOpts = KConfigBackend::ParseDefaults | KConfigBackend::ParseExpansions; + bFileImmutable = backend->parseConfig(utf8Locale, entryMap, parseOpts) == KConfigBackend::ParseImmutable; } if (bFileImmutable) { @@ -918,8 +918,7 @@ bool KConfig::isConfigWritable(bool warnUser) errorMsg += QCoreApplication::translate("KConfig", "Please contact your system administrator."); QString cmdToExec = QStandardPaths::findExecutable(QStringLiteral("kdialog")); if (!cmdToExec.isEmpty()) { - QProcess::execute(cmdToExec, - QStringList() << QStringLiteral("--title") << QCoreApplication::applicationName() << QStringLiteral("--msgbox") << errorMsg); + QProcess::execute(cmdToExec, QStringList{QStringLiteral("--title"), QCoreApplication::applicationName(), QStringLiteral("--msgbox"), errorMsg}); } } |