diff options
author | Max Kellermann <max@duempel.org> | 2013-01-06 18:58:58 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-06 18:59:01 +0100 |
commit | 2cc89e60ccf4337b1956a4295cd3c3f71e91f2aa (patch) | |
tree | 1d01c77346c48598f32d131a1ff301d13f286653 /src/DatabaseQueue.cxx | |
parent | d536944beb783ec098aa6215fc94d8e60cfd310d (diff) | |
download | mpd-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.cxx | 2 |
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); } |