From 536cf15d37700619f4d4f6ceca42720378a94b9b Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Tue, 21 Aug 2018 22:00:04 +0200 Subject: [PATCH] Ref T307, style/messages --- src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp b/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp index 6966ee5ec..3014b6d5a 100644 --- a/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp +++ b/src/plugins/simulator/fsxcommon/simulatorfsxcommon.cpp @@ -930,7 +930,7 @@ namespace BlackSimPlugin } else { - msg = CLogMessage(this).warning("Removed '%1' from simulator, but was not initiated by us: %1 '%2' object id %3") << callsign.toQString() << simObject.getAircraftModelString() << objectID; + msg = CLogMessage(this).warning("Removed '%1' from simulator, but was not initiated by us (swift): %1 '%2' object id %3") << callsign.toQString() << simObject.getAircraftModelString() << objectID; } emit this->driverMessages(msg); } @@ -1731,11 +1731,10 @@ namespace BlackSimPlugin const int simMins = zuluTimeSim.valueInteger(CTimeUnit::min()); const int diffMins = qAbs(targetMins - simMins); if (diffMins < 2) { return; } - HRESULT hr = s_ok(); - hr += SimConnect_TransmitClientEvent(m_hSimConnect, 0, EventSetTimeZuluHours, h, SIMCONNECT_GROUP_PRIORITY_STANDARD, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY); - hr += SimConnect_TransmitClientEvent(m_hSimConnect, 0, EventSetTimeZuluMinutes, m, SIMCONNECT_GROUP_PRIORITY_STANDARD, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY); + const HRESULT hr1 = SimConnect_TransmitClientEvent(m_hSimConnect, 0, EventSetTimeZuluHours, h, SIMCONNECT_GROUP_PRIORITY_STANDARD, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY); + const HRESULT hr2 = SimConnect_TransmitClientEvent(m_hSimConnect, 0, EventSetTimeZuluMinutes, m, SIMCONNECT_GROUP_PRIORITY_STANDARD, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY); - if (isFailure(hr)) + if (isFailure(hr1, hr2)) { CLogMessage(this).warning("Sending time sync failed!"); }