Ref T701, typo

This commit is contained in:
Klaus Basan
2019-07-07 16:40:04 +02:00
committed by Mat Sutcliffe
parent e376c18b28
commit c4e9114a83
3 changed files with 7 additions and 4 deletions

View File

@@ -915,7 +915,7 @@ namespace BlackCore
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 (!CAircraftIcaoCode::isValidDesignator(candidate))

View File

@@ -199,9 +199,12 @@ namespace BlackCore
const QString &candidate, const BlackMisc::Aviation::CCallsign &callsign = {},
BlackMisc::CStatusMessageList *log = nullptr);
//! Is this designator known?
//! Is this aircraft designator known?
//! \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 = {},
BlackMisc::CStatusMessageList *log = nullptr);

View File

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