]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/panel_io.cxx
Commented out a cout statement.
[flightgear.git] / src / Cockpit / panel_io.cxx
index ed72c47ebb01afcd8deb2b7412a6800db352c738..4e89749ca40effb8a1450dd644755520c1c8354c 100644 (file)
@@ -183,7 +183,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 +549,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);