Ref T310, utility functions for statistics (incl.renaming)

This commit is contained in:
Klaus Basan
2018-08-28 01:15:49 +02:00
parent 3ce6e230b2
commit 84bf19697c
7 changed files with 120 additions and 14 deletions

View File

@@ -302,10 +302,9 @@ namespace BlackMisc
QString CAirlineIcaoCode::getCombinedStringWithKey() const
{
QString s(getVDesignator());
if (s.isEmpty()) s = "????";
if (hasName()) { s = s.append(" ").append(getName()); }
return s.append(this->getDbKeyAsStringInParentheses(" "));
return (this->hasValidDesignator() ? this->getVDesignator() : QStringLiteral("")) %
(this->hasName() ? QStringLiteral(" ") % m_name : QStringLiteral("")) %
this->getDbKeyAsStringInParentheses(" ");
}
CAirlineIcaoCode CAirlineIcaoCode::thisOrCallsignCode(const CCallsign &callsign) const