Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
afb29942
Unverified
Commit
afb29942
authored
5 years ago
by
Rosen Penev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[clang-tidy] simplify boolean expressions
Found with readability-simplify-boolean-expr Signed-off-by:
Rosen Penev
<
rosenp@gmail.com
>
parent
bc6eca21
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
9 deletions
+3
-9
CommandLine.cxx
src/CommandLine.cxx
+1
-1
ProxyDatabasePlugin.cxx
src/db/plugins/ProxyDatabasePlugin.cxx
+1
-4
FullyBufferedSocket.cxx
src/event/FullyBufferedSocket.cxx
+1
-4
No files found.
src/CommandLine.cxx
View file @
afb29942
...
...
@@ -283,7 +283,7 @@ static void help(void)
"Options:
\n
"
);
for
(
const
auto
&
i
:
option_defs
)
if
(
i
.
HasDescription
()
==
true
)
// hide hidden options from help print
if
(
i
.
HasDescription
())
// hide hidden options from help print
PrintOption
(
i
);
exit
(
EXIT_SUCCESS
);
...
...
This diff is collapsed.
Click to expand it.
src/db/plugins/ProxyDatabasePlugin.cxx
View file @
afb29942
...
...
@@ -863,10 +863,7 @@ IsFilterSupported(const ISongFilter &f) noexcept
return
true
;
const
auto
tag
=
Convert
(
t
->
GetTagType
());
if
(
tag
==
MPD_TAG_COUNT
)
return
false
;
return
true
;
return
tag
!=
MPD_TAG_COUNT
;
}
else
if
(
auto
u
=
dynamic_cast
<
const
UriSongFilter
*>
(
&
f
))
{
if
(
u
->
IsNegated
())
// TODO implement
...
...
This diff is collapsed.
Click to expand it.
src/event/FullyBufferedSocket.cxx
View file @
afb29942
...
...
@@ -102,10 +102,7 @@ FullyBufferedSocket::OnSocketReady(unsigned flags) noexcept
return
false
;
}
if
(
!
BufferedSocket
::
OnSocketReady
(
flags
))
return
false
;
return
true
;
return
BufferedSocket
::
OnSocketReady
(
flags
);
}
void
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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