mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Ref T472, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
998539d8c8
commit
3be2cd6c5f
@@ -13,12 +13,12 @@
|
||||
#define BLACKMISC_AVIATION_AIRCRAFTCATEGORY_H
|
||||
|
||||
#include "blackmisc/db/datastore.h"
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/statusmessagelist.h"
|
||||
#include "blackmisc/metaclass.h"
|
||||
#include "blackmisc/propertyindex.h"
|
||||
#include "blackmisc/statusmessagelist.h"
|
||||
#include "blackmisc/valueobject.h"
|
||||
#include "blackmisc/variant.h"
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
|
||||
#include <QJsonObject>
|
||||
#include <QMetaType>
|
||||
@@ -117,7 +117,7 @@ namespace BlackMisc
|
||||
//! Validate data
|
||||
BlackMisc::CStatusMessageList validate() const;
|
||||
|
||||
//! Null ICAO?
|
||||
//! Null category?
|
||||
bool isNull() const;
|
||||
|
||||
//! Level compare
|
||||
|
||||
@@ -113,11 +113,11 @@ namespace BlackMisc
|
||||
if (this->getDesignator() == this->getUnassignedDesignator()) { return msg; } // DB ZZZZ
|
||||
}
|
||||
|
||||
if (!hasKnownDesignator()) { msg.push_back(CStatusMessage(cats, CStatusMessage::SeverityError, u"Aircraft ICAO: unknown designator")); }
|
||||
if (!hasKnownDesignator()) { msg.push_back(CStatusMessage(cats, CStatusMessage::SeverityError, u"Aircraft ICAO: unknown designator")); }
|
||||
if (!hasValidCombinedType()) { msg.push_back(CStatusMessage(cats, CStatusMessage::SeverityError, u"Aircraft ICAO: invalid combined type")); }
|
||||
if (!hasValidWtc()) { msg.push_back(CStatusMessage(cats, CStatusMessage::SeverityError, u"Aircraft ICAO: wrong WTC")); }
|
||||
if (!hasManufacturer()) { msg.push_back(CStatusMessage(cats, CStatusMessage::SeverityError, u"Aircraft ICAO: missing manufacturer")); }
|
||||
if (!hasModelDescription()) { msg.push_back(CStatusMessage(cats, CStatusMessage::SeverityError, u"Aircraft ICAO: no description")); }
|
||||
if (!hasValidWtc()) { msg.push_back(CStatusMessage(cats, CStatusMessage::SeverityError, u"Aircraft ICAO: wrong WTC")); }
|
||||
if (!hasManufacturer()) { msg.push_back(CStatusMessage(cats, CStatusMessage::SeverityError, u"Aircraft ICAO: missing manufacturer")); }
|
||||
if (!hasModelDescription()) { msg.push_back(CStatusMessage(cats, CStatusMessage::SeverityError, u"Aircraft ICAO: no description")); }
|
||||
return msg;
|
||||
}
|
||||
|
||||
@@ -168,7 +168,7 @@ namespace BlackMisc
|
||||
else if (this->hasValidCombinedType())
|
||||
{
|
||||
if (this->getEnginesCount() == otherCode.getEnginesCount()) { score += 2; }
|
||||
if (this->getEngineType() == otherCode.getEngineType()) { score += 2; }
|
||||
if (this->getEngineType() == otherCode.getEngineType()) { score += 2; }
|
||||
if (this->getAircraftType() == otherCode.getAircraftType()) { score += 2; }
|
||||
CMatchingUtils::addLogDetailsToList(log, *this, QStringLiteral("Added combined code parts: %1").arg(score));
|
||||
}
|
||||
@@ -339,7 +339,7 @@ namespace BlackMisc
|
||||
if (!this->hasModelIataDescription() && !this->hasModelSwiftDescription()) { return this->getModelDescription(); }
|
||||
|
||||
QStringList combined({ this->getModelDescription() });
|
||||
if (this->hasModelIataDescription()) { combined.append(this->getModelIataDescription()); }
|
||||
if (this->hasModelIataDescription()) { combined.append(this->getModelIataDescription()); }
|
||||
if (this->hasModelSwiftDescription()) { combined.append(this->getModelSwiftDescription()); }
|
||||
combined.removeDuplicates();
|
||||
return combined.join(", ");
|
||||
|
||||
Reference in New Issue
Block a user