Skip to content

Commit

Permalink
Fix GCC warnings (#433)
Browse files Browse the repository at this point in the history
Fix gcc warnings in a few places where GCC was complaining about
iterating over values intead of reference.

Signed-off-by: Arjo Chakravarty <arjoc@intrinisic.ai>
Co-authored-by: Arjo Chakravarty <arjoc@intrinisic.ai>
  • Loading branch information
arjo129 and Arjo Chakravarty authored Aug 7, 2024
1 parent 5fc527d commit a8a731a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FuelClient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1901,7 +1901,7 @@ bool FuelClient::UpdateModels(const std::vector<std::string> &_headers)
}

// Attempt to update each model.
for (const auto id : toProcess)
for (const auto &id : toProcess)
{
ignition::fuel_tools::ModelIdentifier cloudId;

Expand Down Expand Up @@ -1942,7 +1942,7 @@ bool FuelClient::UpdateWorlds(const std::vector<std::string> &_headers)
}

// Attempt to update each world.
for (const auto id : toProcess)
for (const auto &id : toProcess)
{
ignition::fuel_tools::WorldIdentifier cloudId;

Expand Down

0 comments on commit a8a731a

Please sign in to comment.