1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-11-06 02:03:04 +00:00

Apply clang-tidy fix readability-container-size-empty

This commit is contained in:
Carles Fernandez
2018-12-11 12:25:38 +01:00
parent f351615ef9
commit 27b7a93181
4 changed files with 5 additions and 5 deletions

View File

@@ -430,7 +430,7 @@ int main(int argc, char** argv)
std::cout << "[";
start_msg = false;
}
if (gnss_sync_vector.size() > 0)
if (!gnss_sync_vector.empty())
{
std::cout << " " << PRN << " ";
double doppler_measurement_hz = 0;
@@ -523,7 +523,7 @@ int main(int argc, char** argv)
std::cout << "Longitude=" << lon_deg << " [º]" << std::endl;
std::cout << "Altitude=" << altitude_m << " [m]" << std::endl;
if (doppler_measurements_map.size() == 0)
if (doppler_measurements_map.empty())
{
std::cout << "Sorry, no GPS satellites detected in the front-end capture, please check the antenna setup..." << std::endl;
delete acquisition;