mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 05:28:09 +08:00
Ref T215, utility functions
* CServer * ICAO List
This commit is contained in:
@@ -185,6 +185,12 @@ namespace BlackMisc
|
||||
return codes.front();
|
||||
}
|
||||
|
||||
bool CAircraftIcaoCodeList::containsDesignator(const QString &designator) const
|
||||
{
|
||||
if (designator.isEmpty()) { return false; }
|
||||
return this->contains(&CAircraftIcaoCode::getDesignator, designator);
|
||||
}
|
||||
|
||||
void CAircraftIcaoCodeList::sortByRank()
|
||||
{
|
||||
this->sortBy(&CAircraftIcaoCode::getRank);
|
||||
|
||||
Reference in New Issue
Block a user