From: tsteven4 Date: Tue, 13 Nov 2018 15:53:34 +0000 (-0700) Subject: fix clazy detected 'use isEmpty() instead' X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~8^2~72^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9252b7d6dfc90b529471dc6838874287b2e9fd31;p=gpsbabel.git fix clazy detected 'use isEmpty() instead' this is from -Wclazy-isempty-vs-count --- diff --git a/main.cc b/main.cc index e5b76857f..0c56985fa 100644 --- a/main.cc +++ b/main.cc @@ -598,7 +598,7 @@ main(int argc, char* argv[]) } if (qargs.size() > 2) { fatal("Extra arguments on command line\n"); - } else if (qargs.size() && ivecs) { + } else if ((!qargs.isEmpty()) && ivecs) { did_something = 1; /* simulates the default behaviour of waypoints */ if (doing_nothing) { @@ -632,7 +632,7 @@ main(int argc, char* argv[]) cet_convert_deinit(); } - } else if (qargs.size()) { + } else if (!qargs.isEmpty()) { usage(prog_name,0); exit(0); }