Commit 46c3fc1e authored by Alexander Lohnau's avatar Alexander Lohnau 💬

clang-tidy: Force braces around statements

parent 0ce396e6
......@@ -53,8 +53,9 @@ static void listModules()
"(exist [X-KDE-ParentApp] and [X-KDE-ParentApp] == 'kinfocenter')"));
for (KService::List::const_iterator it = services.constBegin(); it != services.constEnd(); ++it) {
const KService::Ptr s = (*it);
if (!KAuthorized::authorizeControlModule(s->menuId()))
if (!KAuthorized::authorizeControlModule(s->menuId())) {
continue;
}
m_modules.append(s);
}
......@@ -145,8 +146,9 @@ int main(int argc, char *argv[])
for (KService::List::ConstIterator it = m_modules.constBegin(); it != m_modules.constEnd(); ++it) {
int len = (*it)->desktopEntryName().length();
if (len > maxLen)
if (len > maxLen) {
maxLen = len;
}
}
for (KService::List::ConstIterator it = m_modules.constBegin(); it != m_modules.constEnd(); ++it) {
......
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