mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
Ref T683, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
70a350ed66
commit
daeea07090
@@ -454,7 +454,7 @@ namespace BlackMisc
|
||||
switch (i)
|
||||
{
|
||||
case IndexValue: return CVariant::from(m_value);
|
||||
case IndexUnit: return CVariant::from(m_unit);
|
||||
case IndexUnit: return CVariant::from(m_unit);
|
||||
case IndexValueRounded0DigitsWithUnit: return CVariant::from(this->valueRoundedWithUnit(0));
|
||||
case IndexValueRounded1DigitsWithUnit: return CVariant::from(this->valueRoundedWithUnit(1));
|
||||
case IndexValueRounded2DigitsWithUnit: return CVariant::from(this->valueRoundedWithUnit(2));
|
||||
|
||||
@@ -534,6 +534,7 @@ namespace BlackMisc
|
||||
bool CSimulatedAircraft::setCG(const CLength &cg)
|
||||
{
|
||||
if (cg.isNull()) { return false; }
|
||||
// ???? set to both models, or only the matched model ????
|
||||
const int c = m_models.setCG(cg);
|
||||
return c > 0;
|
||||
}
|
||||
|
||||
@@ -347,8 +347,8 @@ namespace BlackMisc
|
||||
{
|
||||
QWriteLocker l(&m_lockElvCoordinates);
|
||||
m_statsCurrentElevRequestTimeMs = -1;
|
||||
m_statsMaxElevRequestTimeMs = -1;
|
||||
m_elvFound = m_elvMissed = 0;
|
||||
m_statsMaxElevRequestTimeMs = -1;
|
||||
m_elvFound = m_elvMissed = 0;
|
||||
}
|
||||
|
||||
ISimulationEnvironmentProvider::ISimulationEnvironmentProvider(const CSimulatorPluginInfo &pluginInfo) :
|
||||
@@ -447,7 +447,7 @@ namespace BlackMisc
|
||||
m_pendingElevationRequests.clear();
|
||||
m_statsCurrentElevRequestTimeMs = -1;
|
||||
m_statsMaxElevRequestTimeMs = -1;
|
||||
m_elvFound = m_elvMissed = 0;
|
||||
m_elvFound = m_elvMissed = 0;
|
||||
}
|
||||
|
||||
void ISimulationEnvironmentProvider::clearCGs()
|
||||
|
||||
Reference in New Issue
Block a user