mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
Ref T683, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
70a350ed66
commit
daeea07090
@@ -284,7 +284,7 @@ namespace BlackCore
|
||||
bool CContextOwnAircraft::updateOwnParts(const CAircraftParts &parts)
|
||||
{
|
||||
QWriteLocker l(&m_lockAircraft);
|
||||
bool changed = (m_ownAircraft.getParts() != parts);
|
||||
const bool changed = (m_ownAircraft.getParts() != parts);
|
||||
if (!changed) { return false; }
|
||||
m_ownAircraft.setParts(parts);
|
||||
return true;
|
||||
|
||||
@@ -845,10 +845,10 @@ namespace BlackCore
|
||||
this->rememberGroundElevation(callsign, elevation);
|
||||
}
|
||||
|
||||
const CLength cgO = this->overriddenCGorDefault(simulatorCG, modelString);
|
||||
if (!cgO.isNull() && !this->hasSameSimulatorCG(cgO, callsign))
|
||||
const CLength cgOvr = this->overriddenCGorDefault(simulatorCG, modelString);
|
||||
if (!cgOvr.isNull() && !this->hasSameSimulatorCG(cgOvr, callsign))
|
||||
{
|
||||
this->insertCG(cgO, modelString, callsign); // per model string and CG
|
||||
this->insertCG(cgOvr, modelString, callsign); // per model string and CG
|
||||
|
||||
// here we know we have a valid model and CG
|
||||
m_autoPublishing.insert(modelString, simulatorCG); // still using CG here, not the overridden value
|
||||
@@ -1210,7 +1210,7 @@ namespace BlackCore
|
||||
|
||||
void ISimulator::reverseLookupAndUpdateOwnAircraftModel(const QString &modelString)
|
||||
{
|
||||
CAircraftModel model = getOwnAircraftModel();
|
||||
CAircraftModel model = this->getOwnAircraftModel();
|
||||
model.setModelString(modelString);
|
||||
this->reverseLookupAndUpdateOwnAircraftModel(model);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user