mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
refs #837 Using new abbreviated syntax for null units.
This commit is contained in:
@@ -79,7 +79,7 @@ namespace BlackMisc
|
||||
bool ok = false;
|
||||
double dv = v.toDouble(&ok) * 100.0;
|
||||
CAltitude a(ok ? dv : 0.0, FlightLevel,
|
||||
ok ? CLengthUnit::ft() : CLengthUnit::nullUnit());
|
||||
ok ? CLengthUnit::ft() : nullptr);
|
||||
*this = a;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -308,7 +308,7 @@ namespace BlackMisc
|
||||
|
||||
CTime CAtcStation::bookedWhen() const
|
||||
{
|
||||
if (!this->hasValidBookingTimes()) { return CTime(0, CTimeUnit::nullUnit()); }
|
||||
if (!this->hasValidBookingTimes()) { return CTime(0, nullptr); }
|
||||
QDateTime now = QDateTime::currentDateTimeUtc();
|
||||
qint64 diffMs;
|
||||
if (this->m_bookedFromUtc > now)
|
||||
|
||||
Reference in New Issue
Block a user