]> git.mxchange.org Git - flightgear.git/blobdiff - src/Systems/electrical.hxx
a small cleanup and make Windows simple_mmap function return the proper value if...
[flightgear.git] / src / Systems / electrical.hxx
index eaba350ccdd7e715f0ab8657707ba25bc7334a23..a9e85039bd5682ae18f22191ac2261c9fc0d115a 100644 (file)
 #  include <config.h>
 #endif
 
-#include STL_STRING
+#include <string>
 #include <vector>
 
-SG_USING_STD(string);
-SG_USING_STD(vector);
+using std::string;
+using std::vector;
 
 #include <simgear/props/props.hxx>
 #include <simgear/structure/subsystem_mgr.hxx>
@@ -193,7 +193,7 @@ class FGElectricalSwitch {
 
 private:
 
-    SGPropertyNode *switch_node;
+    SGPropertyNode_ptr switch_node;
     float rating_amps;
     bool circuit_breaker;
 
@@ -275,8 +275,8 @@ private:
     comp_list outputs;
     comp_list connectors;
 
-    SGPropertyNode *_volts_out;
-    SGPropertyNode *_amps_out;
+    SGPropertyNode_ptr _volts_out;
+    SGPropertyNode_ptr _amps_out;
 };