Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
System Settings
Commits
46c3fc1e
Commit
46c3fc1e
authored
Jan 17, 2021
by
Alexander Lohnau
💬
Browse files
clang-tidy: Force braces around statements
parent
0ce396e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/main.cpp
View file @
46c3fc1e
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment