Skip to content

Commit

Permalink
Merge pull request #256 from ARPA-SIMC/fc34-fixes
Browse files Browse the repository at this point in the history
Fix -Werror=range-loop-construct in fc34
  • Loading branch information
spanezz authored May 7, 2021
2 parents 588dfad + f406a6d commit 06d0f55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dballe/db/summary_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void StationEntry<Station>::to_json(core::JSONWriter& writer) const
writer.add(station);
writer.add("v");
writer.start_list();
for (const auto entry: *this)
for (const auto& entry: *this)
entry.to_json(writer);
writer.end_list();
writer.end_mapping();
Expand Down
2 changes: 1 addition & 1 deletion dballe/msg/wr_exporters/synop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ struct Synop : public Template
switch (ctx.trange.pind)
{
case 1:
for (const auto v: ctx.values)
for (const auto& v: ctx.values)
{
switch (v->code())
{
Expand Down

0 comments on commit 06d0f55

Please sign in to comment.