1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-27 15:33:15 +00:00

Fix clang-tidy warning. Was: performance-inefficient-string-concatenation

This commit is contained in:
Carles Fernandez 2021-09-24 16:56:04 +02:00
parent 48b62e9585
commit a7210933b4
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -79,11 +79,11 @@ std::vector<int> Galileo_HAS_data::get_PRNs_in_submask(uint8_t nsys) const
{ {
if ((aux & sat_submask) >= 1) if ((aux & sat_submask) >= 1)
{ {
sat_submask_str = "1" + sat_submask_str; sat_submask_str.insert(0, "1");
} }
else else
{ {
sat_submask_str = "0" + sat_submask_str; sat_submask_str.insert(0, "0");
} }
aux <<= 1; aux <<= 1;
} }