Fix shadowing variables

This commit is contained in:
seelabs
2019-08-13 14:26:02 -07:00
parent 014df67fed
commit b9e73b4852
55 changed files with 460 additions and 444 deletions

View File

@@ -231,9 +231,9 @@ struct json_value_test : beast::unit_test::suite
Json::Reader r;
char const* s ("{\"array\":[{\"12\":23},{},null,false,0.5]}");
auto countLines = [](std::string const & s)
auto countLines = [](std::string const & str)
{
return 1 + std::count_if(s.begin(), s.end(), [](char c){
return 1 + std::count_if(str.begin(), str.end(), [](char c){
return c == '\n';
});
};