DatabaseQueue: force passing playlist reference to std::bind()
Avoid implicit copy.
This commit is contained in:
parent
d536944beb
commit
2cc89e60cc
|
@ -53,6 +53,6 @@ findAddIn(struct playlist &playlist, struct player_control *pc,
|
|||
const DatabaseSelection selection(uri, true, filter);
|
||||
|
||||
using namespace std::placeholders;
|
||||
const auto f = std::bind(AddToQueue, playlist, pc, _1, _2);
|
||||
const auto f = std::bind(AddToQueue, std::ref(playlist), pc, _1, _2);
|
||||
return db->Visit(selection, f, error_r);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue