From e64b2e70de115cb4741153e03769b3a39bb0b6f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Sun, 8 Apr 2018 20:44:02 +0200 Subject: [PATCH] Remove unused captured lambda reference --- src/anthem/ASTUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/anthem/ASTUtils.cpp b/src/anthem/ASTUtils.cpp index 3ff91c9..a4d62c2 100644 --- a/src/anthem/ASTUtils.cpp +++ b/src/anthem/ASTUtils.cpp @@ -59,7 +59,7 @@ bool VariableStack::contains(const VariableDeclaration &variableDeclaration) con }; const auto layerContainsVariableDeclaration = - [&variableDeclaration, &variableDeclarationMatches](const auto &layer) + [&variableDeclarationMatches](const auto &layer) { return (std::find_if(layer->cbegin(), layer->cend(), variableDeclarationMatches) != layer->cend()); };