aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-05-29 15:19:00 -0400
committerDave Reisner <dreisner@archlinux.org>2013-05-29 15:19:48 -0400
commit60328ca75984b9ed729bec20a211071464090243 (patch)
treec32efe9036274618bda784f6d532979d0570cc10
parent92e4b9772a46f4b40b47df44fd3964c868e3c12f (diff)
downloadmirror-ponymix-60328ca75984b9ed729bec20a211071464090243.tar.gz
mirror-ponymix-60328ca75984b9ed729bec20a211071464090243.tar.bz2
mirror-ponymix-60328ca75984b9ed729bec20a211071464090243.zip
pulse: capture the only needed arg, and by reference
oh dear c++....
-rw-r--r--pulse.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/pulse.cc b/pulse.cc
index e9cd28a..87415c9 100644
--- a/pulse.cc
+++ b/pulse.cc
@@ -556,7 +556,7 @@ void PulseClient::remove_device(Device& device) {
devlist->erase(
std::remove_if(
devlist->begin(), devlist->end(),
- [=](Device& d) { return d.index_ == device.index_; }),
+ [&device](Device& d) { return d.index_ == device.index_; }),
devlist->end());
}