From 89c16bad7f0dbe59d50ddf2e23244eda2110f3a3 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Wed, 16 May 2018 21:34:14 +0200 Subject: [PATCH] Ref T270, use QPointer with simulator map in context. The advantage is, that we can also detect if the simulator is deleted elsewhere. --- src/blackcore/context/contextsimulatorimpl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/blackcore/context/contextsimulatorimpl.h b/src/blackcore/context/contextsimulatorimpl.h index 8dacb6741..18193a0f9 100644 --- a/src/blackcore/context/contextsimulatorimpl.h +++ b/src/blackcore/context/contextsimulatorimpl.h @@ -39,6 +39,7 @@ #include #include #include +#include namespace BlackMisc { @@ -233,7 +234,7 @@ namespace BlackCore //! Load the last know model set void initByLastUsedModelSet(); - QPair m_simulatorPlugin; //!< Currently loaded simulator plugin + QPair> m_simulatorPlugin; //!< Currently loaded simulator plugin CPluginManagerSimulator *m_plugins = nullptr; BlackMisc::CRegularThread m_listenersThread; //!< waiting for plugin CWeatherManager m_weatherManager { this };