mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
Ref T129, some more utility functions for aviation value objects
* removed static variables from SELCAL * more finder functions for airline ICAO list * check for IATA code * unify callsign now public
This commit is contained in:
committed by
Mathew Sutcliffe
parent
686cb03170
commit
3fb2f88032
@@ -33,7 +33,7 @@ namespace BlackMisc
|
||||
{
|
||||
if (CSelcal::isValidCharacter(c)) { s += c;}
|
||||
}
|
||||
return s.length() == 4 ? s : QString("");
|
||||
return CSelcal::isValidCode(s) ? s : QString("");
|
||||
}
|
||||
|
||||
bool CSelcal::equalsString(const QString &code) const
|
||||
@@ -83,8 +83,8 @@ namespace BlackMisc
|
||||
{
|
||||
int pos = CSelcal::validCharacters().indexOf(c);
|
||||
Q_ASSERT(pos >= 0);
|
||||
Q_ASSERT(CSelcal::frequencyEquivalents.size() > pos);
|
||||
return CSelcal::frequencyEquivalents[pos];
|
||||
Q_ASSERT(CSelcal::audioFrequencyEquivalents().size() > pos);
|
||||
return CSelcal::audioFrequencyEquivalents()[pos];
|
||||
}
|
||||
|
||||
const QList<CFrequency> &CSelcal::audioFrequencyEquivalents()
|
||||
|
||||
Reference in New Issue
Block a user