mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 23:35:33 +08:00
Completer sort order and ICAO code string building
This commit is contained in:
@@ -222,7 +222,7 @@ namespace BlackMisc
|
||||
CAircraftIcaoCodeList icaos(*this);
|
||||
if (sort) { icaos.sortByDesignatorAndRank(); }
|
||||
|
||||
// 3 steps to get a proper sort order
|
||||
// 3 steps to get a proper sort order of the string list
|
||||
for (const CAircraftIcaoCode &icao : as_const(icaos))
|
||||
{
|
||||
c.append(icao.getCombinedIcaoStringWithKey());
|
||||
@@ -230,8 +230,8 @@ namespace BlackMisc
|
||||
|
||||
if (withFamily)
|
||||
{
|
||||
icaos = this->findWithFamily(true);
|
||||
for (const CAircraftIcaoCode &icao : as_const(icaos))
|
||||
const CAircraftIcaoCodeList icaosFamily = icaos.findWithFamily(true);
|
||||
for (const CAircraftIcaoCode &icao : icaosFamily)
|
||||
{
|
||||
c.append(icao.getCombinedFamilyStringWithKey());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user