aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-06 18:58:58 +0100
committerMax Kellermann <max@duempel.org>2013-01-06 18:59:01 +0100
commit2cc89e60ccf4337b1956a4295cd3c3f71e91f2aa (patch)
tree1d01c77346c48598f32d131a1ff301d13f286653
parentd536944beb783ec098aa6215fc94d8e60cfd310d (diff)
downloadmpd-2cc89e60ccf4337b1956a4295cd3c3f71e91f2aa.tar.gz
mpd-2cc89e60ccf4337b1956a4295cd3c3f71e91f2aa.tar.xz
mpd-2cc89e60ccf4337b1956a4295cd3c3f71e91f2aa.zip
DatabaseQueue: force passing playlist reference to std::bind()
Avoid implicit copy.
Diffstat (limited to '')
-rw-r--r--src/DatabaseQueue.cxx2
1 files changed, 1 insertions, 1 deletions
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);
}