aboutsummaryrefslogtreecommitdiff
path: root/src/core/kcoreconfigskeleton.cpp
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2021-08-13 02:10:47 +0200
committerAhmad Samir <a.samirh78@gmail.com>2021-08-13 02:12:26 +0200
commit783d1c28c88229f81715f6ecd1cf3866855252a2 (patch)
treeaff64f5f6f22f92ff5ae5ff9413d1b250470b4e4 /src/core/kcoreconfigskeleton.cpp
parent17c179566d764d9a55b6ae98006495133bcffdbf (diff)
downloadkconfig-783d1c28c88229f81715f6ecd1cf3866855252a2.tar.gz
kconfig-783d1c28c88229f81715f6ecd1cf3866855252a2.tar.bz2
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
Diffstat (limited to 'src/core/kcoreconfigskeleton.cpp')
-rw-r--r--src/core/kcoreconfigskeleton.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/kcoreconfigskeleton.cpp b/src/core/kcoreconfigskeleton.cpp
index ab968023..e1c5c1dd 100644
--- a/src/core/kcoreconfigskeleton.cpp
+++ b/src/core/kcoreconfigskeleton.cpp
@@ -17,10 +17,11 @@ static QString obscuredString(const QString &str)
{
QString result;
const QChar *unicode = str.unicode();
- for (int i = 0; i < str.length(); ++i)
+ for (int i = 0; i < str.length(); ++i) {
// yes, no typo. can't encode ' ' or '!' because
// they're the unicode BOM. stupid scrambling. stupid.
result += (unicode[i].unicode() <= 0x21) ? unicode[i] : QChar(0x1001F - unicode[i].unicode());
+ }
return result;
}