Skip to content

Commit

Permalink
fixed a cppcheck warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Dec 27, 2015
1 parent d80bbff commit 80cdeca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5501,7 +5501,7 @@ class basic_json
}

/// inequality operator (needed for range-based for)
bool operator!= (const iteration_proxy_internal& o)
bool operator!= (const iteration_proxy_internal& o) const
{
return anchor != o.anchor;
}
Expand Down
2 changes: 1 addition & 1 deletion src/json.hpp.re2c
Original file line number Diff line number Diff line change
Expand Up @@ -5501,7 +5501,7 @@ class basic_json
}

/// inequality operator (needed for range-based for)
bool operator!= (const iteration_proxy_internal& o)
bool operator!= (const iteration_proxy_internal& o) const
{
return anchor != o.anchor;
}
Expand Down

0 comments on commit 80cdeca

Please sign in to comment.