-Werror,-Wunused-lambda-capture

Change-Id: Idb3c9673d8c20782ff2d7995aad30ed9253b5337
This commit is contained in:
Stephan Bergmann
2017-01-14 18:33:59 +01:00
parent e1b6ff7f62
commit a207bb515e

View File

@@ -851,7 +851,7 @@ void CallbackFlushHandler::queue(const int type, const char* data)
{
const std::string name = payload.substr(0, pos + 1);
removeAll(
[type, &payload, &name] (const queue_type::value_type& elem) {
[type, &name] (const queue_type::value_type& elem) {
return (elem.first == type) && (elem.second.compare(0, name.size(), name) == 0);
}
);