diff options
| author | Heiko Thiel <heiko.thiel@hpi.de> | 2019-05-03 16:31:20 +0200 |
|---|---|---|
| committer | Heiko Thiel <heiko.thiel@hpi.de> | 2019-05-03 16:31:20 +0200 |
| commit | 5dc9ecc44740c34247076e1c26aa5b00f06595ea (patch) | |
| tree | e658fd1bdb94d26deda65cbbdf39fe82c10c4dee /src/GPSFix.cpp | |
| parent | d8e490622a2693b4b49598d194aab1139d4e821b (diff) | |
Changes are done by run-clang-tidy -header-filter='.*' -checks='-*,readability-container-size-empty' -fix
Diffstat (limited to 'src/GPSFix.cpp')
| -rw-r--r-- | src/GPSFix.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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++){ |
