Formatting

This commit is contained in:
Klaus Basan
2017-02-25 16:35:21 +01:00
committed by Mathew Sutcliffe
parent ff0c37ff58
commit cb024b0245
5 changed files with 18 additions and 21 deletions

View File

@@ -41,7 +41,6 @@ namespace BlackGui
class CUserComponent;
class CWeatherComponent;
//! Main info area of pilot client
class BLACKGUI_EXPORT CMainInfoAreaComponent : public BlackGui::CInfoArea
{

View File

@@ -298,13 +298,13 @@ namespace BlackGui
void CSettingsSimulatorComponent::ps_showPluginConfig(const QString &identifier)
{
CSimulatorPluginInfoList simDrivers(getAvailablePlugins());
auto selected = std::find_if(simDrivers.begin(), simDrivers.end(),
[&identifier](const CSimulatorPluginInfo & info)
const auto selected = std::find_if(simDrivers.begin(), simDrivers.end(),
[&identifier](const CSimulatorPluginInfo & info)
{
return info.getIdentifier() == identifier;
});
QString configId = m_plugins->getPluginConfigId(selected->getIdentifier());
const QString configId = m_plugins->getPluginConfigId(selected->getIdentifier());
IPluginConfig *config = m_plugins->getPluginById<IPluginConfig>(configId);
if (!config)
{

View File

@@ -42,7 +42,7 @@ namespace BlackGui
explicit CSettingsSimulatorComponent(QWidget *parent = nullptr);
//! Destructor
~CSettingsSimulatorComponent();
virtual ~CSettingsSimulatorComponent();
private slots:
//! Driver plugin enabled/disabled
@@ -87,7 +87,6 @@ namespace BlackGui
bool m_pluginLoaded = false; //!< plugin loaded
BlackCore::CPluginManagerSimulator* m_plugins = nullptr;
BlackMisc::CSetting<BlackCore::Application::TEnabledSimulators> m_enabledSimulators { this, &CSettingsSimulatorComponent::ps_reloadPluginConfig };
};
}
} // namespace