mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 08:46:53 +08:00
fix clangs -Wshadow warning
This commit is contained in:
parent
14e9ec6e97
commit
32723fcbc0
@ -719,8 +719,8 @@ namespace chaiscript
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool has_this_capture(const std::vector<AST_Node_Impl_Ptr<T>> &children) noexcept {
|
static bool has_this_capture(const std::vector<AST_Node_Impl_Ptr<T>> &t_children) noexcept {
|
||||||
return std::any_of(std::begin(children), std::end(children),
|
return std::any_of(std::begin(t_children), std::end(t_children),
|
||||||
[](const auto &child){
|
[](const auto &child){
|
||||||
return child->children[0]->text == "this";
|
return child->children[0]->text == "this";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user