Minor tweaks, style

This commit is contained in:
Klaus Basan
2018-06-21 18:06:48 +02:00
parent e46076afa5
commit 69193f089a
10 changed files with 27 additions and 32 deletions

View File

@@ -48,7 +48,7 @@ namespace BlackSimPlugin
if (!sGui || !sGui->getISimulator()) { return nullptr; }
ISimulator *sim = sGui->getISimulator();
if (!sim->getSimulatorInfo().isFsxP3DFamily()) { return nullptr; }
if (sim->getSimulatorInfo() != m_simulator) { return nullptr; }
if (sim->getSimulatorInfo() != m_simulator) { return nullptr; }
CSimulatorFsxCommon *fsx = static_cast<CSimulatorFsxCommon *>(sim); // wonder why qobject_cast does not work here
return fsx;
}