mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Formatting, minor tweaks
This commit is contained in:
committed by
Roland Winklmeier
parent
a8ab2a37b8
commit
1f3e5c6abf
@@ -121,9 +121,12 @@ namespace BlackSimPlugin
|
||||
//! Set Simconnect object id
|
||||
void setObjectId(DWORD id);
|
||||
|
||||
//! Set Simconnect object id
|
||||
//! Get Simconnect object id
|
||||
DWORD getObjectId() const { return m_objectId; }
|
||||
|
||||
//! Get Simconnect object id
|
||||
QString getObjectIdAsString() const { return QString::number(this->getObjectId()); }
|
||||
|
||||
//! Valid request id?
|
||||
bool hasValidRequestId() const { return m_validRequestId; }
|
||||
|
||||
|
||||
@@ -723,8 +723,10 @@ namespace BlackSimPlugin
|
||||
if (!toBeAddedAircraft.isEmpty())
|
||||
{
|
||||
const CSimulatedAircraft nextPendingAircraft(m_addPendingAircraft.front());
|
||||
const QPointer <CSimulatorFsxCommon> myself(this);
|
||||
QTimer::singleShot(100, this, [ = ]
|
||||
{
|
||||
if (myself.isNull()) { return; }
|
||||
this->physicallyAddRemoteAircraftImpl(nextPendingAircraft, mode);
|
||||
});
|
||||
}
|
||||
@@ -742,7 +744,7 @@ namespace BlackSimPlugin
|
||||
const CSimConnectObject simObject = m_simConnectObjects.getSimObjectForObjectId(objectID);
|
||||
if (!simObject.hasValidRequestAndObjectId()) { return false; } // object id from somewhere else
|
||||
const CCallsign callsign(simObject.getCallsign());
|
||||
Q_ASSERT_X(!callsign.isEmpty(), Q_FUNC_INFO, "missing callsign");
|
||||
Q_ASSERT_X(!callsign.isEmpty(), Q_FUNC_INFO, "Missing callsign for removed object");
|
||||
|
||||
if (simObject.isPendingRemoved())
|
||||
{
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace BlackSimPlugin
|
||||
};
|
||||
|
||||
//! FSX Simulator Implementation
|
||||
class CSimulatorFsxCommon : public BlackSimPlugin::FsCommon::CSimulatorFsCommon
|
||||
class CSimulatorFsxCommon : public FsCommon::CSimulatorFsCommon
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_INTERFACES(BlackCore::ISimulator)
|
||||
|
||||
Reference in New Issue
Block a user