mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 20:20:35 +00:00
Do not shadow variable
This commit is contained in:
parent
6b28ef9e7c
commit
0d1d89b8db
@ -213,9 +213,9 @@ void Galileo_Cnav_Message::read_MT1_body(const std::string& message_string)
|
||||
std::string msg = message.substr(0, HAS_MSG_SATELLITE_MASK_LENGTH);
|
||||
d_HAS_data.satellite_mask[i] = read_has_message_body_uint64(msg);
|
||||
int ones_in_satellite_mask = 0;
|
||||
for (char i : msg)
|
||||
for (char c : msg)
|
||||
{
|
||||
if (i == '1')
|
||||
if (c == '1')
|
||||
{
|
||||
ones_in_satellite_mask++;
|
||||
}
|
||||
@ -226,9 +226,9 @@ void Galileo_Cnav_Message::read_MT1_body(const std::string& message_string)
|
||||
msg = message.substr(0, HAS_MSG_SIGNAL_MASK_LENGTH);
|
||||
d_HAS_data.signal_mask[i] = read_has_message_body_uint16(msg);
|
||||
int ones_in_signal_mask = 0;
|
||||
for (char i : msg)
|
||||
for (char c : msg)
|
||||
{
|
||||
if (i == '1')
|
||||
if (c == '1')
|
||||
{
|
||||
ones_in_signal_mask++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user