Formatting

This commit is contained in:
Klaus Basan
2017-02-03 03:20:47 +01:00
committed by Mathew Sutcliffe
parent 7eacb41113
commit d4b2238dc6
3 changed files with 16 additions and 21 deletions

View File

@@ -686,11 +686,9 @@ namespace BlackCore
static const QList<QCommandLineOption> opts static const QList<QCommandLineOption> opts
{ {
QCommandLineOption({ "idAndKey", "clientIdAndKey" }, QCommandLineOption({ "idAndKey", "clientIdAndKey" },
QCoreApplication::translate("networkvatlib", "Client id and key pair separated by ':', e.g. <id>:<key>."), QCoreApplication::translate("networkvatlib", "Client id and key pair separated by ':', e.g. <id>:<key>."), "clientIdAndKey"),
"clientIdAndKey"),
QCommandLineOption({ "s", "serverType" }, QCommandLineOption({ "s", "serverType" },
QCoreApplication::translate("networkvatlib", "FSD server type. Possible values: vatsim, fsd"), QCoreApplication::translate("networkvatlib", "FSD server type. Possible values: vatsim, fsd"), "serverType")
"serverType")
}; };
// only in not officially shipped versions // only in not officially shipped versions
@@ -701,7 +699,7 @@ namespace BlackCore
{ {
QString clientIdAndKey = sApp->getParserValue("clientIdAndKey").toLower(); QString clientIdAndKey = sApp->getParserValue("clientIdAndKey").toLower();
if (clientIdAndKey.isEmpty() || !clientIdAndKey.contains(':')) { return false; } if (clientIdAndKey.isEmpty() || !clientIdAndKey.contains(':')) { return false; }
auto stringList = clientIdAndKey.split(':'); const auto stringList = clientIdAndKey.split(':');
QString clientIdAsString = stringList[0]; QString clientIdAsString = stringList[0];
bool ok = true; bool ok = true;
id = clientIdAsString.toInt(&ok, 0); id = clientIdAsString.toInt(&ok, 0);

View File

@@ -23,7 +23,6 @@ namespace BlackMisc
{ {
namespace Aviation namespace Aviation
{ {
CAltitude::CAltitude(const QString &altitudeAsString, BlackMisc::PhysicalQuantities::CPqString::SeparatorMode mode) : CLength(0, BlackMisc::PhysicalQuantities::CLengthUnit::m()), m_datum(MeanSeaLevel) CAltitude::CAltitude(const QString &altitudeAsString, BlackMisc::PhysicalQuantities::CPqString::SeparatorMode mode) : CLength(0, BlackMisc::PhysicalQuantities::CLengthUnit::m()), m_datum(MeanSeaLevel)
{ {
this->parseFromString(altitudeAsString, mode); this->parseFromString(altitudeAsString, mode);
@@ -111,6 +110,5 @@ namespace BlackMisc
static const CAltitude null(0, CAltitude::MeanSeaLevel, CLengthUnit::nullUnit()); static const CAltitude null(0, CAltitude::MeanSeaLevel, CLengthUnit::nullUnit());
return null; return null;
} }
} // namespace } // namespace
} // namespace } // namespace

View File

@@ -32,7 +32,6 @@ namespace BlackMisc
{ {
namespace Aviation namespace Aviation
{ {
/*! /*!
* Altitude as used in aviation, can be AGL or MSL altitude * Altitude as used in aviation, can be AGL or MSL altitude
* \remarks Intentionally allowing +/- CLength , and >= / <= CLength. * \remarks Intentionally allowing +/- CLength , and >= / <= CLength.