[clang-tidy] replace std::bind with lambdas
Found with modernize-avoid-bind Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user