aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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());
}