1
0
Fork 0

Code cleanup, no functional change

This commit is contained in:
Torsten Dreyer 2011-01-23 21:51:07 +01:00
parent fe03a4d799
commit b085649f20
2 changed files with 13 additions and 13 deletions

View file

@ -194,18 +194,18 @@ public:
class MetarLoadRequest { class MetarLoadRequest {
public: public:
MetarLoadRequest( const string & stationId ) { MetarLoadRequest( const string & stationId ) :
_stationId = stationId; _stationId(stationId),
_proxyHost = fgGetNode("/sim/presets/proxy/host", true)->getStringValue(); _proxyHost(fgGetNode("/sim/presets/proxy/host", true)->getStringValue()),
_proxyPort = fgGetNode("/sim/presets/proxy/port", true)->getStringValue(); _proxyPort(fgGetNode("/sim/presets/proxy/port", true)->getStringValue()),
_proxyAuth = fgGetNode("/sim/presets/proxy/authentication", true)->getStringValue(); _proxyAuth(fgGetNode("/sim/presets/proxy/authentication", true)->getStringValue())
} {}
MetarLoadRequest( const MetarLoadRequest & other ) { MetarLoadRequest( const MetarLoadRequest & other ) :
_stationId = other._stationId; _stationId(other._stationId),
_proxyHost = other._proxyAuth; _proxyHost(other._proxyAuth),
_proxyPort = other._proxyPort; _proxyPort(other._proxyPort),
_proxyAuth = other._proxyAuth; _proxyAuth(other._proxyAuth)
} {}
string _stationId; string _stationId;
string _proxyHost; string _proxyHost;
string _proxyPort; string _proxyPort;

View file

@ -7,7 +7,7 @@ using simgear::PropertyList;
class TiedPropertyList : PropertyList { class TiedPropertyList : PropertyList {
public: public:
TiedPropertyList() {} TiedPropertyList() {}
TiedPropertyList( SGPropertyNode_ptr root ) { _root = root; } TiedPropertyList( SGPropertyNode_ptr root ) : _root(root) {}
void setRoot( SGPropertyNode_ptr root ) { _root = root; } void setRoot( SGPropertyNode_ptr root ) { _root = root; }
SGPropertyNode_ptr getRoot() const { return _root; } SGPropertyNode_ptr getRoot() const { return _root; }