diff --git a/src/blackcore/context/contextsimulatorimpl.cpp b/src/blackcore/context/contextsimulatorimpl.cpp index 0109a6705..88b73bc6c 100644 --- a/src/blackcore/context/contextsimulatorimpl.cpp +++ b/src/blackcore/context/contextsimulatorimpl.cpp @@ -559,8 +559,8 @@ namespace BlackCore { stopSimulatorListeners(); - auto enabledSimulators = m_enabledSimulators.getThreadLocal(); - auto allSimulators = m_plugins->getAvailableSimulatorPlugins(); + const auto enabledSimulators = m_enabledSimulators.getThreadLocal(); + const auto allSimulators = m_plugins->getAvailableSimulatorPlugins(); for (const CSimulatorPluginInfo &s : allSimulators) { if (enabledSimulators.contains(s.getIdentifier())) diff --git a/src/blackcore/context/contextsimulatorimpl.h b/src/blackcore/context/contextsimulatorimpl.h index dc0b75560..83e98a4df 100644 --- a/src/blackcore/context/contextsimulatorimpl.h +++ b/src/blackcore/context/contextsimulatorimpl.h @@ -200,14 +200,14 @@ namespace BlackCore CPluginManagerSimulator *m_plugins = nullptr; BlackMisc::CRegularThread m_listenersThread; //!< waiting for plugin BlackCore::CWeatherManager m_weatherManager { this }; - BlackMisc::CSetting m_enabledSimulators { this, &CContextSimulator::restoreSimulatorPlugins }; BlackCore::CAircraftMatcher m_aircraftMatcher; //!< Model matcher BlackMisc::Simulation::CAircraftModelSetLoader m_modelSetLoader { this }; //!< load model set from caches QMap m_matchingMessages; BlackMisc::CSettingReadOnly m_messageSettings { this }; //!< settings for messages + BlackMisc::CSettingReadOnly m_enabledSimulators { this, &CContextSimulator::restoreSimulatorPlugins }; + QString m_networkSessionId; //! Network session, if not connected empty bool m_initallyAddAircrafts = false; bool m_enableMatchingMessages = true; - QString m_networkSessionId; //! Network session, if not connected empty bool m_isWeatherActivated = false; }; } // namespace