diff --git a/src/Environment/realwx_ctrl.cxx b/src/Environment/realwx_ctrl.cxx index a547ef7e5..98fe6ed3b 100644 --- a/src/Environment/realwx_ctrl.cxx +++ b/src/Environment/realwx_ctrl.cxx @@ -194,18 +194,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; diff --git a/src/Environment/tiedpropertylist.hxx b/src/Environment/tiedpropertylist.hxx index dbb9cc45a..cfdd57c97 100644 --- a/src/Environment/tiedpropertylist.hxx +++ b/src/Environment/tiedpropertylist.hxx @@ -7,7 +7,7 @@ using simgear::PropertyList; class TiedPropertyList : PropertyList { public: TiedPropertyList() {} - TiedPropertyList( SGPropertyNode_ptr root ) { _root = root; } + TiedPropertyList( SGPropertyNode_ptr root ) : _root(root) {} void setRoot( SGPropertyNode_ptr root ) { _root = root; } SGPropertyNode_ptr getRoot() const { return _root; }