From 5dc9ecc44740c34247076e1c26aa5b00f06595ea Mon Sep 17 00:00:00 2001 From: Heiko Thiel Date: Fri, 3 May 2019 16:31:20 +0200 Subject: Changes are done by run-clang-tidy -header-filter='.*' -checks='-*,readability-container-size-empty' -fix --- src/GPSFix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/GPSFix.cpp') diff --git a/src/GPSFix.cpp b/src/GPSFix.cpp index 5cbb17f..b0e54e6 100644 --- a/src/GPSFix.cpp +++ b/src/GPSFix.cpp @@ -87,7 +87,7 @@ double GPSAlmanac::averageSNR(){ } double GPSAlmanac::minSNR(){ double min = 9999999; - if (satellites.size() == 0){ + if (satellites.empty()){ return 0; } int32_t num_over_zero = 0; @@ -397,7 +397,7 @@ std::string GPSFix::toString(){ << " SNR: avg: " << almanac.averageSNR() << " dB [min: " << almanac.minSNR() << " dB, max:" << almanac.maxSNR() << " dB]" << endl; ss << " < Almanac (" << almanac.percentComplete() << "%) >" << endl; - if (almanac.satellites.size() == 0){ + if (almanac.satellites.empty()){ ss << " > No satellite info in almanac." << endl; } for (size_t i = 0; i < almanac.satellites.size(); i++){ -- cgit v1.2.3