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

Apply clang-tidy check: readability-string-compare

This commit is contained in:
Carles Fernandez 2021-02-11 13:37:32 +01:00
parent 915c2859f2
commit 16dd5ec241
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ GalileoE1DllPllVemlTrackingFpga::GalileoE1DllPllVemlTrackingFpga(
uint32_t num_prev_assigned_ch_1C = 0;
std::string device_io_name;
if (configuration->property("Tracking_1C.devicename", default_device_name_GPS_L1).compare(default_device_name_GPS_L1) == 0)
if (configuration->property("Tracking_1C.devicename", default_device_name_GPS_L1) == default_device_name_GPS_L1)
{
for (uint32_t k = 0; k < configuration->property("Channels_1C.count", 0); k++)
{
@ -82,7 +82,7 @@ GalileoE1DllPllVemlTrackingFpga::GalileoE1DllPllVemlTrackingFpga(
}
else
{
if (configuration->property("Tracking_1C.devicename", std::string("")).compare(device_name) != 0)
if (configuration->property("Tracking_1C.devicename", std::string("")) != device_name)
{
num_prev_assigned_ch_1C = configuration->property("Channels_1C.count", 0);
}

View File

@ -160,7 +160,7 @@ void GpsL1CaDllPllTrackingFpga::set_channel(unsigned int channel)
bool alt_device_found = false; // alternative compatible HW accelerator device not found by default
// If the HW accelerator is the default one in the L1 band then look for an alternative hardware accelerator
if (device_name.compare(default_device_name_GPS_L1) == 0)
if (device_name == default_device_name_GPS_L1)
{
if (find_uio_dev_file_name(device_io_name, default_device_name_Galileo_E1, channel - num_prev_assigned_ch) < 0)
{