From 2cc89e60ccf4337b1956a4295cd3c3f71e91f2aa Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 6 Jan 2013 18:58:58 +0100 Subject: DatabaseQueue: force passing playlist reference to std::bind() Avoid implicit copy. --- src/DatabaseQueue.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DatabaseQueue.cxx b/src/DatabaseQueue.cxx index f808d25f6..21103fe37 100644 --- a/src/DatabaseQueue.cxx +++ b/src/DatabaseQueue.cxx @@ -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); } -- cgit v1.2.3