mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 00:45:46 +08:00
style and consistency:
* rename CStatusMessages to CStatusMessageList * rename NetworkVatlib to CNetworkVatlib * replace all occurrences of Realname with RealName (correct camel case) * CSequence method corresponding to CList::append is push_back * don't compile the qdbuscpp2xml metadata plugin by default * CAircraftIcao string members always trimmed and capitalized * added CComSystem::roundTo25KHz * using epsilon comparison in a couple of places refs #81
This commit is contained in:
committed by
Mathew Sutcliffe
parent
b5c3a5543f
commit
bb61654a29
@@ -36,7 +36,8 @@ namespace BlackMisc
|
||||
* \param color
|
||||
*/
|
||||
CAircraftIcao(const QString &icao, const QString &type, const QString &airline, const QString &livery, const QString &color)
|
||||
: m_designator(icao), m_type(type), m_airline(airline), m_livery(livery), m_color(color) {}
|
||||
: m_designator(icao.trimmed().toUpper()), m_type(type.trimmed().toUpper()), m_airline(airline.trimmed().toUpper()),
|
||||
m_livery(livery.trimmed().toUpper()), m_color(color.trimmed().toUpper()) {}
|
||||
|
||||
/*!
|
||||
* \brief QVariant, required for DBus QVariant lists
|
||||
@@ -87,7 +88,7 @@ namespace BlackMisc
|
||||
* \brief Set airline
|
||||
* \param livery
|
||||
*/
|
||||
void setLivery(const QString &livery) { this->m_livery = livery; }
|
||||
void setLivery(const QString &livery) { this->m_livery = livery.trimmed().toUpper(); }
|
||||
|
||||
/*!
|
||||
* \brief Livery?
|
||||
|
||||
Reference in New Issue
Block a user