]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/panel_io.cxx
Added static port system and a new altimeter model connected to it.
[flightgear.git] / src / Cockpit / panel_io.cxx
index ed72c47ebb01afcd8deb2b7412a6800db352c738..f3922b8dac9db8d56b247f3eb40f41298f44ab0e 100644 (file)
@@ -45,7 +45,6 @@
 #include <GUI/gui.h>
 
 #include "panel.hxx"
-#include "steam.hxx"
 #include "panel_io.hxx"
 
 //built-in layers
@@ -183,7 +182,7 @@ readAction (const SGPropertyNode * node, float w_scale, float h_scale)
 
   FGPanelAction * action = new FGPanelAction(button, x, y, w, h);
 
-  vector<const SGPropertyNode *>bindings = node->getChildren("binding");
+  vector<SGPropertyNode_ptr>bindings = node->getChildren("binding");
   for (unsigned int i = 0; i < bindings.size(); i++) {
     SG_LOG(SG_INPUT, SG_INFO, "Reading binding "
           << bindings[i]->getStringValue("command"));
@@ -549,7 +548,7 @@ readLayer (const SGPropertyNode * node, float w_scale, float h_scale)
 static FGPanelInstrument *
 readInstrument (const SGPropertyNode * node)
 {
-  const string &name = node->getStringValue("name");
+  const string name = node->getStringValue("name");
   int x = node->getIntValue("x", -1);
   int y = node->getIntValue("y", -1);
   int real_w = node->getIntValue("w", -1);