mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix shadowing variables
This commit is contained in:
@@ -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';
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user