1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 04:00:34 +00:00

Use const iterator

This commit is contained in:
Carles Fernandez 2017-08-17 17:23:08 +02:00
parent 481c6c44c6
commit f71933e938

View File

@ -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<std::string>::iterator it = system_set.find(system_);
std::set<std::string>::const_iterator it = system_set.find(system_);
if(it != system_set.end())
if(it != system_set.cend())
{
system = system_;
}