From 783d1c28c88229f81715f6ecd1cf3866855252a2 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Fri, 13 Aug 2021 02:10:47 +0200 Subject: clang-tidy: one declaration per line; braces around statements clang-tidy checks: readability-isolate-declaration and readability-braces-around-statements KF task: https://phabricator.kde.org/T14729 GIT_SILENT --- src/core/kconfigini.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core/kconfigini.cpp') diff --git a/src/core/kconfigini.cpp b/src/core/kconfigini.cpp index 2792cb4f..5bc8743c 100644 --- a/src/core/kconfigini.cpp +++ b/src/core/kconfigini.cpp @@ -592,10 +592,11 @@ void KConfigIniBackend::setFilePath(const QString &file) setLocalFilePath(info.canonicalFilePath()); } else { const QString dir = info.dir().canonicalPath(); - if (!dir.isEmpty()) + if (!dir.isEmpty()) { setLocalFilePath(dir + QLatin1Char('/') + info.fileName()); - else + } else { setLocalFilePath(file); + } } } -- cgit v1.2.1