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
dfed9546
Unverified
Commit
dfed9546
authored
Jan 31, 2020
by
Rosen Penev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[clang-tidy] replace std::bind with lambdas
Found with modernize-avoid-bind Signed-off-by:
Rosen Penev
<
rosenp@gmail.com
>
parent
bc6eca21
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
5 deletions
+4
-5
DatabasePlaylist.cxx
src/db/DatabasePlaylist.cxx
+1
-2
Dop.cxx
src/pcm/Dop.cxx
+1
-1
Dsd16.cxx
src/pcm/Dsd16.cxx
+1
-1
Dsd32.cxx
src/pcm/Dsd32.cxx
+1
-1
No files found.
src/db/DatabasePlaylist.cxx
View file @
dfed9546
...
...
@@ -39,7 +39,6 @@ search_add_to_playlist(const Database &db, const Storage *storage,
const
DatabaseSelection
&
selection
)
{
using
namespace
std
::
placeholders
;
const
auto
f
=
std
::
bind
(
AddSong
,
storage
,
playlist_path_utf8
,
_1
);
const
auto
f
=
[
=
](
auto
&&
arg1
)
{
return
AddSong
(
storage
,
playlist_path_utf8
,
arg1
);
};
db
.
Visit
(
selection
,
f
);
}
src/pcm/Dop.cxx
View file @
dfed9546
...
...
@@ -94,5 +94,5 @@ DsdToDopConverter::Convert(ConstBuffer<uint8_t> src) noexcept
{
using
namespace
std
::
placeholders
;
return
rest_buffer
.
Process
<
uint32_t
>
(
buffer
,
src
,
2
*
channels
,
std
::
bind
(
DsdToDop
,
_1
,
_2
,
_3
,
channels
)
);
[
=
](
auto
&&
arg1
,
auto
&&
arg2
,
auto
&&
arg3
)
{
return
DsdToDop
(
arg1
,
arg2
,
arg3
,
channels
);
}
);
}
src/pcm/Dsd16.cxx
View file @
dfed9546
...
...
@@ -65,5 +65,5 @@ Dsd16Converter::Convert(ConstBuffer<uint8_t> src) noexcept
{
using
namespace
std
::
placeholders
;
return
rest_buffer
.
Process
<
uint16_t
>
(
buffer
,
src
,
channels
,
std
::
bind
(
Dsd8To16
,
_1
,
_2
,
_3
,
channels
)
);
[
=
](
auto
&&
arg1
,
auto
&&
arg2
,
auto
&&
arg3
)
{
return
Dsd8To16
(
arg1
,
arg2
,
arg3
,
channels
);
}
);
}
src/pcm/Dsd32.cxx
View file @
dfed9546
...
...
@@ -67,5 +67,5 @@ Dsd32Converter::Convert(ConstBuffer<uint8_t> src) noexcept
{
using
namespace
std
::
placeholders
;
return
rest_buffer
.
Process
<
uint32_t
>
(
buffer
,
src
,
channels
,
std
::
bind
(
Dsd8To32
,
_1
,
_2
,
_3
,
channels
)
);
[
=
](
auto
&&
arg1
,
auto
&&
arg2
,
auto
&&
arg3
)
{
return
Dsd8To32
(
arg1
,
arg2
,
arg3
,
channels
);
}
);
}
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