Commit 2cc89e60 authored by Max Kellermann's avatar Max Kellermann

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

Avoid implicit copy.
parent d536944b
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment