From 32723fcbc082dd92ad398958867be626c9313f94 Mon Sep 17 00:00:00 2001 From: Bernd Amend Date: Sat, 22 May 2021 15:49:11 +0200 Subject: [PATCH] fix clangs -Wshadow warning --- include/chaiscript/language/chaiscript_eval.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/chaiscript/language/chaiscript_eval.hpp b/include/chaiscript/language/chaiscript_eval.hpp index 32e6ae5e..a692572f 100644 --- a/include/chaiscript/language/chaiscript_eval.hpp +++ b/include/chaiscript/language/chaiscript_eval.hpp @@ -719,8 +719,8 @@ namespace chaiscript ); } - static bool has_this_capture(const std::vector> &children) noexcept { - return std::any_of(std::begin(children), std::end(children), + static bool has_this_capture(const std::vector> &t_children) noexcept { + return std::any_of(std::begin(t_children), std::end(t_children), [](const auto &child){ return child->children[0]->text == "this"; }