mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-21 19:55:20 -05:00
Squash a compiler warning
This commit is contained in:
parent
ab9675c2a7
commit
9264aa95aa
@ -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_)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user