From fe1e976093dfcbb5f916f46cb9dc0ec4696cb730 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Mon, 24 Feb 2020 14:36:41 +0100 Subject: [PATCH] Ref T773, style --- src/blackcore/airspacemonitor.cpp | 2 +- src/blackcore/simulator.cpp | 2 +- src/blackmisc/network/user.cpp | 2 +- src/blackmisc/simulation/settings/xswiftbussettingsqtfree.h | 4 ++-- src/plugins/simulator/xplane/simulatorxplane.cpp | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/blackcore/airspacemonitor.cpp b/src/blackcore/airspacemonitor.cpp index 44fe10a15..7548c8346 100644 --- a/src/blackcore/airspacemonitor.cpp +++ b/src/blackcore/airspacemonitor.cpp @@ -1429,7 +1429,7 @@ namespace BlackCore fromNonMoving = true; } - // do we have a elevation yet? + // do we have an elevation yet? if (!averagePlane.isNull()) { correctedSituation.setGroundElevation(averagePlane, CAircraftSituation::Average); diff --git a/src/blackcore/simulator.cpp b/src/blackcore/simulator.cpp index 36de7b7b5..4c8385442 100644 --- a/src/blackcore/simulator.cpp +++ b/src/blackcore/simulator.cpp @@ -363,7 +363,7 @@ namespace BlackCore void ISimulator::callbackReceivedRequestedElevation(const CElevationPlane &plane, const CCallsign &callsign) { if (this->isShuttingDown()) { return; } - if (plane.isNull()) { return; } + if (plane.isNull()) { return; } // this happens if requested for a coordinate where scenery is not available- // Update in remote aircraft for given callsign bool updatedForOnGroundPosition = false; diff --git a/src/blackmisc/network/user.cpp b/src/blackmisc/network/user.cpp index 4fe4607f3..3de103e6f 100644 --- a/src/blackmisc/network/user.cpp +++ b/src/blackmisc/network/user.cpp @@ -217,7 +217,7 @@ namespace BlackMisc // Joe McArthur -> valid if (uc > 1 && lc > 2 && lc > uc) { return newRealName; } // mixed case name, no need to beautify if (ch.isLower()) { lc++; continue; } - if (ch.isUpper()) { uc++; continue;} + if (ch.isUpper()) { uc++; continue; } } // simple title case beautifying diff --git a/src/blackmisc/simulation/settings/xswiftbussettingsqtfree.h b/src/blackmisc/simulation/settings/xswiftbussettingsqtfree.h index 14d35d3b1..88609970d 100644 --- a/src/blackmisc/simulation/settings/xswiftbussettingsqtfree.h +++ b/src/blackmisc/simulation/settings/xswiftbussettingsqtfree.h @@ -133,10 +133,10 @@ namespace BlackMisc //! TCAS functionality? void setTcasEnabled(bool tcas) { m_tcasEnabled = tcas; } - //! Terrain probe to establish ground elevation? + //! Terrain probe to query ground elevation enabled? bool isTerrainProbeEnabled() const { return m_terrainProbeEnabled; } - //! Terrain probe to establish ground elevation? + //! Terrain probe to query ground elevation enabled? void setTerrainProbeEnabled(bool enabled) { m_terrainProbeEnabled = enabled; } //! Load and parse config file diff --git a/src/plugins/simulator/xplane/simulatorxplane.cpp b/src/plugins/simulator/xplane/simulatorxplane.cpp index 4a0936bd0..639ed5cb9 100644 --- a/src/plugins/simulator/xplane/simulatorxplane.cpp +++ b/src/plugins/simulator/xplane/simulatorxplane.cpp @@ -1042,8 +1042,8 @@ namespace BlackSimPlugin if (CBuildConfig::isLocalDeveloperDebugBuild()) { Q_ASSERT_X(elevationsMeters.size() == size, Q_FUNC_INFO, "Wrong elevations"); - Q_ASSERT_X(latitudesDeg.size() == size, Q_FUNC_INFO, "Wrong latitudesDeg"); - Q_ASSERT_X(longitudesDeg.size() == size, Q_FUNC_INFO, "Wrong longitudesDeg"); + Q_ASSERT_X(latitudesDeg.size() == size, Q_FUNC_INFO, "Wrong latitudesDeg"); + Q_ASSERT_X(longitudesDeg.size() == size, Q_FUNC_INFO, "Wrong longitudesDeg"); Q_ASSERT_X(verticalOffsetsMeters.size() == size, Q_FUNC_INFO, "Wrong CG"); }