fix clangs -Wshadow warning

This commit is contained in:
Bernd Amend 2021-05-22 15:49:11 +02:00
parent 14e9ec6e97
commit 32723fcbc0

View File

@ -719,8 +719,8 @@ namespace chaiscript
);
}
static bool has_this_capture(const std::vector<AST_Node_Impl_Ptr<T>> &children) noexcept {
return std::any_of(std::begin(children), std::end(children),
static bool has_this_capture(const std::vector<AST_Node_Impl_Ptr<T>> &t_children) noexcept {
return std::any_of(std::begin(t_children), std::end(t_children),
[](const auto &child){
return child->children[0]->text == "this";
}