diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-05-29 15:19:00 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-05-29 15:19:48 -0400 |
commit | 60328ca75984b9ed729bec20a211071464090243 (patch) | |
tree | c32efe9036274618bda784f6d532979d0570cc10 | |
parent | 92e4b9772a46f4b40b47df44fd3964c868e3c12f (diff) | |
download | mirror-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.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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()); } |