[XML] Simplify lambda removing unused capture. NFCI.

llvm-svn: 317144
This commit is contained in:
Davide Italiano 2017-11-01 23:48:07 +00:00
parent 8e353b90c7
commit 014ef593aa
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ XMLNode XMLNode::FindFirstChildElementWithName(const char *name) const {
#if defined(LIBXML2_DEFINED)
ForEachChildElementWithName(
name, [&result_node, name](const XMLNode &node) -> bool {
name, [&result_node](const XMLNode &node) -> bool {
result_node = node;
// Stop iterating, we found the node we wanted
return false;