Skip to content

Commit

Permalink
Fix for shadowed path variable
Browse files Browse the repository at this point in the history
Fixes the warning about declaration shadows a local variable for path parameter.
  • Loading branch information
MonkeybreadSoftware authored Sep 4, 2023
1 parent a414677 commit 85dc640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/jsoncons_ext/jsonpath/expression.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3077,9 +3077,9 @@ namespace detail {

if ((options & result_options::path) == result_options::path)
{
auto callback = [&result](const json_location_type& path, reference)
auto callback = [&result](const json_location_type& pathp, reference)
{
result.emplace_back(path.to_string());
result.emplace_back(pathp.to_string());
};
evaluate(resources, root, path, instance, callback, options);
}
Expand Down

0 comments on commit 85dc640

Please sign in to comment.