From a8a731a298dcedf283b0fc1d91c0404dd317a1c7 Mon Sep 17 00:00:00 2001 From: Arjo Chakravarty Date: Thu, 8 Aug 2024 00:20:23 +0800 Subject: [PATCH] Fix GCC warnings (#433) Fix gcc warnings in a few places where GCC was complaining about iterating over values intead of reference. Signed-off-by: Arjo Chakravarty Co-authored-by: Arjo Chakravarty --- src/FuelClient.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FuelClient.cc b/src/FuelClient.cc index ed8a6e62..c13133ec 100644 --- a/src/FuelClient.cc +++ b/src/FuelClient.cc @@ -1901,7 +1901,7 @@ bool FuelClient::UpdateModels(const std::vector &_headers) } // Attempt to update each model. - for (const auto id : toProcess) + for (const auto &id : toProcess) { ignition::fuel_tools::ModelIdentifier cloudId; @@ -1942,7 +1942,7 @@ bool FuelClient::UpdateWorlds(const std::vector &_headers) } // Attempt to update each world. - for (const auto id : toProcess) + for (const auto &id : toProcess) { ignition::fuel_tools::WorldIdentifier cloudId;