Minor style changes

This commit is contained in:
Klaus Basan
2019-09-05 00:36:47 +02:00
parent cdea5086de
commit 272677d719
2 changed files with 7 additions and 9 deletions

View File

@@ -957,7 +957,7 @@ namespace BlackCore
{
const CSimulatedAircraft aircraft(this->getAircraftInRangeForCallsign(callsign));
Q_ASSERT_X(!aircraft.getCallsign().isEmpty(), Q_FUNC_INFO, "missing callsign");
emit this->changedRemoteAircraftModel(aircraft, originator);
emit this->changedRemoteAircraftModel(aircraft, originator); // update aircraft model
}
return c;
}
@@ -969,7 +969,7 @@ namespace BlackCore
if (c)
{
const CSimulatedAircraft aircraft(this->getAircraftInRangeForCallsign(callsign));
emit this->changedRemoteAircraftModel(aircraft, originator);
emit this->changedRemoteAircraftModel(aircraft, originator); // updated network model
}
return c;
}

View File

@@ -493,14 +493,14 @@ namespace XSwiftBus
for (const auto &requestedCallsign : requestedCallsigns)
{
auto planeIt = m_planesByCallsign.find(requestedCallsign);
const auto planeIt = m_planesByCallsign.find(requestedCallsign);
if (planeIt == m_planesByCallsign.end()) { continue; }
Plane *plane = planeIt->second;
const Plane *plane = planeIt->second;
assert(plane);
double latDeg = plane->position.lat;
double lonDeg = plane->position.lon;
const double latDeg = plane->position.lat;
const double lonDeg = plane->position.lon;
double groundElevation = plane->terrainProbe.getElevation(latDeg, lonDeg, plane->position.elevation);
if (std::isnan(groundElevation)) { groundElevation = 0.0; }
double fudgeFactor = 3.0;
@@ -519,7 +519,7 @@ namespace XSwiftBus
auto planeIt = m_planesByCallsign.find(callsign);
if (planeIt != m_planesByCallsign.end())
{
Plane *plane = planeIt->second;
const Plane *plane = planeIt->second;
return plane->terrainProbe.getElevation(latitudeDeg, longitudeDeg, altitudeMeters);
}
else
@@ -614,7 +614,6 @@ namespace XSwiftBus
{
setDrawingLabels(drawing);
});
}
else if (message.getMethodName() == "isDrawingLabels")
{
@@ -644,7 +643,6 @@ namespace XSwiftBus
{
setMaxDrawDistance(nauticalMiles);
});
}
else if (message.getMethodName() == "addPlane")
{