mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-08 21:05:34 +08:00
Ref T348, style
This commit is contained in:
@@ -56,10 +56,10 @@ namespace BlackSimPlugin
|
||||
CSimulatorFsxCommon *CFsxSettingsComponent::getFsxSimulator() const
|
||||
{
|
||||
if (!sGui || !sGui->getISimulator() || sGui->isShuttingDown()) { return nullptr; }
|
||||
ISimulator *sim = sGui->getISimulator();
|
||||
if (!sim->getSimulatorInfo().isFsxP3DFamily()) { return nullptr; }
|
||||
if (sim->getSimulatorInfo() != m_simulator) { return nullptr; }
|
||||
CSimulatorFsxCommon *fsx = static_cast<CSimulatorFsxCommon *>(sim); // wonder why qobject_cast does not work here
|
||||
ISimulator *simulator = sGui->getISimulator();
|
||||
if (!simulator->getSimulatorInfo().isFsxP3DFamily()) { return nullptr; }
|
||||
if (simulator->getSimulatorInfo() != m_simulator) { return nullptr; }
|
||||
CSimulatorFsxCommon *fsx = static_cast<CSimulatorFsxCommon *>(simulator); // wonder why qobject_cast does not work here
|
||||
return fsx;
|
||||
}
|
||||
} // ns
|
||||
|
||||
@@ -886,7 +886,7 @@ namespace BlackSimPlugin
|
||||
{
|
||||
if (!myself) { return; }
|
||||
if (this->isShuttingDownOrDisconnected()) { return; }
|
||||
m_addPendingAircraft.insert(simObjAddAgain, true);
|
||||
m_addPendingAircraft.insert(simObjAddAgain, true); // add failed object
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user