mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
Minor tweaks, style
This commit is contained in:
@@ -183,14 +183,14 @@ namespace BlackCore
|
||||
return BlackMisc::Simulation::CInterpolationAndRenderingSetupPerCallsign();
|
||||
}
|
||||
|
||||
//! \copydoc ISimulator::setInterpolationAndRenderingSetup
|
||||
//! \copydoc BlackMisc::Simulation::IInterpolationSetupProvider::setInterpolationSetupGlobal
|
||||
virtual void setInterpolationAndRenderingSetupGlobal(const BlackMisc::Simulation::CInterpolationAndRenderingSetupGlobal &setup) override
|
||||
{
|
||||
Q_UNUSED(setup);
|
||||
logEmptyContextWarning(Q_FUNC_INFO);
|
||||
}
|
||||
|
||||
//! \copydoc ISimulator::setInterpolationSetupPerCallsign
|
||||
//! \copydoc BlackMisc::Simulation::IInterpolationSetupProvider::setInterpolationSetupsPerCallsign
|
||||
virtual bool setInterpolationAndRenderingSetupsPerCallsign(const BlackMisc::Simulation::CInterpolationSetupList &setups, bool ignoreSameAsGlobal) override
|
||||
{
|
||||
Q_UNUSED(setups);
|
||||
|
||||
@@ -133,13 +133,13 @@ namespace BlackCore
|
||||
return m_simulatorPlugin.second->getSimulatorStatus();
|
||||
}
|
||||
|
||||
BlackMisc::Simulation::CSimulatorPluginInfo CContextSimulator::getSimulatorPluginInfo() const
|
||||
CSimulatorPluginInfo CContextSimulator::getSimulatorPluginInfo() const
|
||||
{
|
||||
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
|
||||
if (m_simulatorPlugin.first.isUnspecified()) { return BlackMisc::Simulation::CSimulatorPluginInfo(); }
|
||||
if (m_simulatorPlugin.first.isUnspecified()) { return CSimulatorPluginInfo(); }
|
||||
|
||||
Q_ASSERT(m_simulatorPlugin.second);
|
||||
if (m_simulatorPlugin.first.getSimulator() == "emulated") { return m_simulatorPlugin.second->getSimulatorPluginInfo(); }
|
||||
if (m_simulatorPlugin.first.getSimulator().contains("emulated", Qt::CaseInsensitive)) { return m_simulatorPlugin.second->getSimulatorPluginInfo(); }
|
||||
return m_simulatorPlugin.first;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user