Ref T709, changed to "static" settings as it needs to be used in static functions such as "CTraffic::preferences"

This commit is contained in:
Klaus Basan
2019-07-27 02:28:02 +02:00
committed by Mat Sutcliffe
parent f2f9ee8818
commit 1440c4d2e9
8 changed files with 50 additions and 32 deletions

View File

@@ -32,7 +32,7 @@ namespace XSwiftBus
{
public:
//! Constructor
CWeather(CSettings &settings);
CWeather(CSettings *staticSettings);
//! DBus interface name
static const std::string &InterfaceName()
@@ -103,7 +103,7 @@ namespace XSwiftBus
virtual DBusHandlerResult dbusMessageHandler(const CDBusMessage &message) override;
private:
CSettings &m_pluginSettings;
static CSettings *s_pluginSettings; //!< needs to be static for static functions;
DataRef<xplane::data::sim::weather::use_real_weather_bool> m_useRealWeather;
DataRef<xplane::data::sim::weather::visibility_reported_m> m_visibilityM;