forked from OSchip/llvm-project
[XML] Simplify lambda removing unused capture. NFCI.
llvm-svn: 317144
This commit is contained in:
parent
8e353b90c7
commit
014ef593aa
|
@ -339,7 +339,7 @@ XMLNode XMLNode::FindFirstChildElementWithName(const char *name) const {
|
||||||
|
|
||||||
#if defined(LIBXML2_DEFINED)
|
#if defined(LIBXML2_DEFINED)
|
||||||
ForEachChildElementWithName(
|
ForEachChildElementWithName(
|
||||||
name, [&result_node, name](const XMLNode &node) -> bool {
|
name, [&result_node](const XMLNode &node) -> bool {
|
||||||
result_node = node;
|
result_node = node;
|
||||||
// Stop iterating, we found the node we wanted
|
// Stop iterating, we found the node we wanted
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue