Ref T701, typo

This commit is contained in:
Klaus Basan
2019-07-07 16:40:04 +02:00
parent 576d72ca84
commit b4cb6606d6
3 changed files with 7 additions and 4 deletions

View File

@@ -915,7 +915,7 @@ namespace BlackCore
return {}; return {};
} }
bool CAircraftMatcher::isKnowAircraftDesignator(const QString &candidate, const CCallsign &callsign, CStatusMessageList *log) bool CAircraftMatcher::isKnownAircraftDesignator(const QString &candidate, const CCallsign &callsign, CStatusMessageList *log)
{ {
if (!sApp || sApp->isShuttingDown() || !sApp->hasWebDataServices()) { return false; } if (!sApp || sApp->isShuttingDown() || !sApp->hasWebDataServices()) { return false; }
if (!CAircraftIcaoCode::isValidDesignator(candidate)) if (!CAircraftIcaoCode::isValidDesignator(candidate))

View File

@@ -199,9 +199,12 @@ namespace BlackCore
const QString &candidate, const BlackMisc::Aviation::CCallsign &callsign = {}, const QString &candidate, const BlackMisc::Aviation::CCallsign &callsign = {},
BlackMisc::CStatusMessageList *log = nullptr); BlackMisc::CStatusMessageList *log = nullptr);
//! Is this designator known? //! Is this aircraft designator known?
//! \threadsafe //! \threadsafe
static bool isKnowAircraftDesignator( static bool isKnownAircraftDesignator(
const QString &candidate, const BlackMisc::Aviation::CCallsign &callsign = {},
BlackMisc::CStatusMessageList *log = nullptr);
const QString &candidate, const BlackMisc::Aviation::CCallsign &callsign = {}, const QString &candidate, const BlackMisc::Aviation::CCallsign &callsign = {},
BlackMisc::CStatusMessageList *log = nullptr); BlackMisc::CStatusMessageList *log = nullptr);

View File

@@ -789,7 +789,7 @@ namespace BlackCore
if (!aircraftIcao.hasValidDbKey()) if (!aircraftIcao.hasValidDbKey())
{ {
aircraftIcao = CAircraftIcaoCode(aircraftIcaoString); aircraftIcao = CAircraftIcaoCode(aircraftIcaoString);
const bool knownAircraftIcao = CAircraftMatcher::isKnowAircraftDesignator(aircraftIcaoString, callsign, log); const bool knownAircraftIcao = CAircraftMatcher::isKnownAircraftDesignator(aircraftIcaoString, callsign, log);
if (airlineIcao.isLoadedFromDb() && !knownAircraftIcao) if (airlineIcao.isLoadedFromDb() && !knownAircraftIcao)
{ {
// we have no valid aircraft ICAO, so we do a fuzzy search among those // we have no valid aircraft ICAO, so we do a fuzzy search among those