mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
Fix clang-tidy and clazy warnings
This commit is contained in:
@@ -639,7 +639,7 @@ namespace BlackSimPlugin
|
||||
int aircraftNumber = 0;
|
||||
const bool updateAllAircraft = this->isUpdateAllRemoteAircraft(currentTimestamp);
|
||||
const CCallsignSet callsignsInRange = this->getAircraftInRangeCallsigns();
|
||||
for (const CFlightgearMPAircraft &flightgearAircraft : m_flightgearAircraftObjects)
|
||||
for (const CFlightgearMPAircraft &flightgearAircraft : std::as_const(m_flightgearAircraftObjects))
|
||||
{
|
||||
const CCallsign callsign(flightgearAircraft.getCallsign());
|
||||
const bool hasCallsign = !callsign.isEmpty();
|
||||
|
||||
@@ -599,7 +599,7 @@ namespace BlackSimPlugin
|
||||
|
||||
void CFsuipc::processWeatherMessages()
|
||||
{
|
||||
if (m_weatherMessageQueue.empty()) { return; }
|
||||
if (m_weatherMessageQueue.isEmpty()) { return; }
|
||||
if (!m_opened) { return; }
|
||||
FsuipcWeatherMessage &weatherMessage = m_weatherMessageQueue.first();
|
||||
|
||||
|
||||
@@ -1046,7 +1046,7 @@ namespace BlackSimPlugin
|
||||
int aircraftNumber = 0;
|
||||
const bool updateAllAircraft = this->isUpdateAllRemoteAircraft(currentTimestamp);
|
||||
const CCallsignSet callsignsInRange = this->getAircraftInRangeCallsigns();
|
||||
for (const CXPlaneMPAircraft &xplaneAircraft : m_xplaneAircraftObjects)
|
||||
for (const CXPlaneMPAircraft &xplaneAircraft : std::as_const(m_xplaneAircraftObjects))
|
||||
{
|
||||
const CCallsign callsign(xplaneAircraft.getCallsign());
|
||||
const bool hasCallsign = !callsign.isEmpty();
|
||||
|
||||
Reference in New Issue
Block a user