Squash a compiler warning

This commit is contained in:
Bill Somerville 2019-07-03 02:12:27 +01:00
parent ab9675c2a7
commit 9264aa95aa
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -51,7 +51,7 @@ namespace
int constexpr table_rows () int constexpr table_rows ()
{ {
return sizeof (ADIF_bands) / sizeof (ADIF_bands[0]); return sizeof ADIF_bands / sizeof ADIF_bands[0];
} }
} }
@ -79,7 +79,7 @@ QString Bands::find (Frequency f) const
int Bands::find (QString const& band) const int Bands::find (QString const& band) const
{ {
int result {-1}; int result {-1};
for (auto i = 0u; i < table_rows (); ++i) for (auto i = 0; i < table_rows (); ++i)
{ {
if (band == ADIF_bands[i].name_) if (band == ADIF_bands[i].name_)
{ {