X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FEnvironment%2Frealwx_ctrl.cxx;h=621fb11c3c829ba76c0c98214937c049aab5837f;hb=ed434d9967b0b23e4abb172d699ef956246f4bf9;hp=71f52d7bad0820950f1d17d301c1989929a70ac7;hpb=526cd9fa6e5b89522c528d4a7f5f7b2cafb9095e;p=flightgear.git diff --git a/src/Environment/realwx_ctrl.cxx b/src/Environment/realwx_ctrl.cxx index 71f52d7ba..621fb11c3 100644 --- a/src/Environment/realwx_ctrl.cxx +++ b/src/Environment/realwx_ctrl.cxx @@ -25,7 +25,6 @@ #endif #include "realwx_ctrl.hxx" -#include "tiedpropertylist.hxx" #include "metarproperties.hxx" #include "metarairportfilter.hxx" #include "fgmetar.hxx" @@ -34,12 +33,14 @@ #include #include +#include #include #if defined(ENABLE_THREADS) #include #include #endif +using simgear::PropertyList; namespace Environment { @@ -69,6 +70,7 @@ LiveMetarProperties::LiveMetarProperties( SGPropertyNode_ptr rootNode ) : LiveMetarProperties::~LiveMetarProperties() { + _tiedProperties.Untie(); } void LiveMetarProperties::update( double dt ) @@ -105,8 +107,8 @@ protected: bool _enabled; bool __enabled; - TiedPropertyList _tiedProperties; - ; typedef std::vector MetarPropertiesList; + simgear::TiedPropertyList _tiedProperties; + typedef std::vector MetarPropertiesList; MetarPropertiesList _metarProperties; }; @@ -195,18 +197,18 @@ public: class MetarLoadRequest { public: - MetarLoadRequest( const string & stationId ) { - _stationId = stationId; - _proxyHost = fgGetNode("/sim/presets/proxy/host", true)->getStringValue(); - _proxyPort = fgGetNode("/sim/presets/proxy/port", true)->getStringValue(); - _proxyAuth = fgGetNode("/sim/presets/proxy/authentication", true)->getStringValue(); - } - MetarLoadRequest( const MetarLoadRequest & other ) { - _stationId = other._stationId; - _proxyHost = other._proxyAuth; - _proxyPort = other._proxyPort; - _proxyAuth = other._proxyAuth; - } + MetarLoadRequest( const string & stationId ) : + _stationId(stationId), + _proxyHost(fgGetNode("/sim/presets/proxy/host", true)->getStringValue()), + _proxyPort(fgGetNode("/sim/presets/proxy/port", true)->getStringValue()), + _proxyAuth(fgGetNode("/sim/presets/proxy/authentication", true)->getStringValue()) + {} + MetarLoadRequest( const MetarLoadRequest & other ) : + _stationId(other._stationId), + _proxyHost(other._proxyAuth), + _proxyPort(other._proxyPort), + _proxyAuth(other._proxyAuth) + {} string _stationId; string _proxyHost; string _proxyPort;