Skip to content

Commit

Permalink
fix clang range-loop-analysis warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillikers committed Feb 11, 2020
1 parent 573a6f1 commit 3b6417d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion toml/region.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ inline std::string format_underline(const std::string& message,
retval << '\n';
retval << make_string(static_cast<std::size_t>(line_num_width + 1), ' ');
retval << color::bold << color::blue << " | " << color::reset;
for(const auto help : helps)
for(const auto& help : helps)
{
retval << color::bold << "\nHint: " << color::reset;
retval << help;
Expand Down
2 changes: 1 addition & 1 deletion toml/serializer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ struct serializer

// print non-table stuff first. because after printing [foo.bar], the
// remaining non-table values will be assigned into [foo.bar], not [foo]
for(const auto kv : v)
for(const auto& kv : v)
{
if(kv.second.is_table() || is_array_of_tables(kv.second))
{
Expand Down

0 comments on commit 3b6417d

Please sign in to comment.