Style, typo

This commit is contained in:
Klaus Basan
2019-07-16 00:59:44 +02:00
parent 02e87026aa
commit ce33709254
4 changed files with 18 additions and 17 deletions

View File

@@ -8,6 +8,7 @@
#include "matchingutils.h"
#include "aircraftmodel.h"
#include "blackmisc/aviation/logutils.h"
#include "blackmisc/db/datastoreutility.h"
#include "blackmisc/comparefunctions.h"
#include "blackmisc/fileutils.h"
@@ -495,8 +496,8 @@ namespace BlackMisc
{
switch (this->getModelMode())
{
case Include: return CIcon::iconByIndex(CIcons::ModelInclude);
case Exclude: return CIcon::iconByIndex(CIcons::ModelExclude);
case Include: return CIcon::iconByIndex(CIcons::ModelInclude);
case Exclude: return CIcon::iconByIndex(CIcons::ModelExclude);
case Undefined: return CIcon::iconByIndex(CIcons::StandardIconUnknown16);
default:
Q_ASSERT_X(false, Q_FUNC_INFO, "wrong mode");
@@ -580,7 +581,7 @@ namespace BlackMisc
return p;
}
bool CAircraftModel::isSwiftLiyeryString(const QString &liveryString)
bool CAircraftModel::isSwiftLiveryString(const QString &liveryString)
{
return (liveryString.length() > liveryStringPrefix().length() && liveryString.startsWith(liveryStringPrefix(), Qt::CaseInsensitive));
}
@@ -598,7 +599,7 @@ namespace BlackMisc
DBTripleIds CAircraftModel::parseNetworkLiveryString(const QString &liveryString)
{
// "swift_m22l33a11"
if (!CAircraftModel::isSwiftLiyeryString(liveryString)) {return DBTripleIds(); }
if (!CAircraftModel::isSwiftLiveryString(liveryString)) { return DBTripleIds(); }
DBTripleIds ids;
const QString ls = liveryString.mid(liveryStringPrefix().length()).toLower();

View File

@@ -80,7 +80,7 @@ namespace BlackMisc
enum ModelType
{
TypeUnknown,
TypeQueriedFromNetwork, //!< model was queried by network protocol
TypeQueriedFromNetwork, //!< model was queried by network protocol (ICAO data)
TypeFSInnData, //!< model based on FSD ICAO data
TypeReverseLookup, //!< reverse lookup model
TypeModelMatching, //!< model is result of model matching
@@ -530,7 +530,7 @@ namespace BlackMisc
static const QString &liveryStringPrefix();
//! swift livery string
static bool isSwiftLiyeryString(const QString &liveryString);
static bool isSwiftLiveryString(const QString &liveryString);
//! Split swift network string
//! \sa getSwiftLiveryString