mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
refs #797, added support for combined type
* adjusted log messages * aligned name to combined type
This commit is contained in:
@@ -191,14 +191,14 @@ namespace BlackMisc
|
||||
});
|
||||
}
|
||||
|
||||
CAircraftModelList CAircraftModelList::findByCombinedCode(const QString &combinedCode) const
|
||||
CAircraftModelList CAircraftModelList::findByCombinedType(const QString &combinedType) const
|
||||
{
|
||||
const QString cc(combinedCode.trimmed().toUpper());
|
||||
if (combinedCode.length() != 3) { return CAircraftModelList(); }
|
||||
const QString cc(combinedType.trimmed().toUpper());
|
||||
if (combinedType.length() != 3) { return CAircraftModelList(); }
|
||||
return this->findBy([ & ](const CAircraftModel & model)
|
||||
{
|
||||
const CAircraftIcaoCode icao(model.getAircraftIcaoCode());
|
||||
return icao.matchesCombinedCode(cc);
|
||||
return icao.matchesCombinedType(cc);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user