mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Ref T298, better string handling/messages
This commit is contained in:
@@ -90,10 +90,9 @@ namespace BlackMisc
|
||||
|
||||
QString CAirlineIcaoCode::getDesignatorNameCountry() const
|
||||
{
|
||||
QString s(this->getDesignator());
|
||||
if (this->hasName()) { s = s.append(" ").append(this->getName()); }
|
||||
if (this->hasValidCountry()) { s = s.append(" ").append(this->getCountryIso()); }
|
||||
return s.trimmed();
|
||||
return this->getDesignator() %
|
||||
(this->hasName() ? (QStringLiteral(" ") % this->getName()) : QStringLiteral("")) %
|
||||
(this->hasValidCountry() ? (QStringLiteral(" ") % this->getCountryIso()) : QStringLiteral(""));
|
||||
}
|
||||
|
||||
QString CAirlineIcaoCode::getSimplifiedName() const
|
||||
|
||||
Reference in New Issue
Block a user