From 60328ca75984b9ed729bec20a211071464090243 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Wed, 29 May 2013 15:19:00 -0400 Subject: pulse: capture the only needed arg, and by reference oh dear c++.... --- pulse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pulse.cc') 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()); } -- cgit v1.2.3