DatabaseQueue: force passing playlist reference to std::bind()

Avoid implicit copy.
This commit is contained in:
Max Kellermann 2013-01-06 18:58:58 +01:00
parent d536944beb
commit 2cc89e60cc
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}