1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-08-30 09:27:58 +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

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)
{
sat_submask_str = "1" + sat_submask_str;
sat_submask_str.insert(0, "1");
}
else
{
sat_submask_str = "0" + sat_submask_str;
sat_submask_str.insert(0, "0");
}
aux <<= 1;
}