Ref T683, style

This commit is contained in:
Klaus Basan
2019-06-13 00:09:44 +02:00
committed by Mat Sutcliffe
parent 70a350ed66
commit daeea07090
14 changed files with 64 additions and 58 deletions

View File

@@ -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;

View File

@@ -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);
}