]> git.mxchange.org Git - flightgear.git/commitdiff
Code cleanup, no functional change
authorTorsten Dreyer <Torsten@t3r.de>
Sun, 23 Jan 2011 20:51:07 +0000 (21:51 +0100)
committerTorsten Dreyer <Torsten@t3r.de>
Sun, 23 Jan 2011 20:51:07 +0000 (21:51 +0100)
src/Environment/realwx_ctrl.cxx
src/Environment/tiedpropertylist.hxx

index a547ef7e5b769656e26cbd4a14228950a1b6a7bb..98fe6ed3b71b8ba4f30ba858a6e3a38b20ed638c 100644 (file)
@@ -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;
index dbb9cc45a4d565d77a6a1d5c2fb2cf70038fb3b1..cfdd57c97509bbab9d2ff143f4a6d1d645ba5520 100644 (file)
@@ -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; }