mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-18 21:23:02 +00:00
Use const iterator
This commit is contained in:
parent
481c6c44c6
commit
f71933e938
@ -121,9 +121,9 @@ Gnss_Satellite& Gnss_Satellite::operator=(const Gnss_Satellite &rhs) {
|
|||||||
void Gnss_Satellite::set_system(const std::string& system_)
|
void Gnss_Satellite::set_system(const std::string& system_)
|
||||||
{
|
{
|
||||||
// Set the satellite system {"GPS", "GLONASS", "SBAS", "Galileo", "Compass"}
|
// 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_;
|
system = system_;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user