]> git.mxchange.org Git - simgear.git/blobdiff - simgear/misc/props_io.cxx
- made getValue methods protected, so that they won't be invoked outside
[simgear.git] / simgear / misc / props_io.cxx
index f2c9992ac20a990e5c2a159f9d21e18fc7ced260..ff438fc640dbc28210977bad4eb81126e3131af8 100644 (file)
@@ -274,7 +274,7 @@ readProperties (const string &file, SGPropertyNode * start_node)
  * Return the type name.
  */
 static const char *
-getTypeName (SGValue::Type type)
+getTypeName (SGPropertyNode::Type type)
 {
   switch (type) {
   case SGValue::UNKNOWN:
@@ -346,7 +346,7 @@ writeNode (ostream &output, const SGPropertyNode * node, int indent)
     if (node->isAlias() && node->getAliasTarget() != 0)
       output << " alias=\"" << node->getAliasTarget()->getPath() << "\"/>";
     else {
-      if (node->getType() != SGValue::UNKNOWN)
+      if (node->getType() != SGPropertyNode::UNKNOWN)
        output << " type=\"" << getTypeName(node->getType()) << '"';
       output << '>';
       writeData(output, node->getStringValue());