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/kcoreconfigskeleton.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/kcoreconfigskeleton.cpp') 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; } -- cgit v1.2.1