From f71933e93829efc59a5a87c813e3e7766283b87f Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Thu, 17 Aug 2017 17:23:08 +0200 Subject: [PATCH] Use const iterator --- src/core/system_parameters/gnss_satellite.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/system_parameters/gnss_satellite.cc b/src/core/system_parameters/gnss_satellite.cc index c56bbe52d..2e2e18f00 100644 --- a/src/core/system_parameters/gnss_satellite.cc +++ b/src/core/system_parameters/gnss_satellite.cc @@ -121,9 +121,9 @@ Gnss_Satellite& Gnss_Satellite::operator=(const Gnss_Satellite &rhs) { void Gnss_Satellite::set_system(const std::string& system_) { // Set the satellite system {"GPS", "GLONASS", "SBAS", "Galileo", "Compass"} - std::set::iterator it = system_set.find(system_); + std::set::const_iterator it = system_set.find(system_); - if(it != system_set.end()) + if(it != system_set.cend()) { system = system_; }