- added missing return statement for getAliasTarget

- changed SGValue::Type to SGPropertyNode::Type for all of
  SGPropertyNode
This commit is contained in:
curt 2001-06-12 02:48:24 +00:00
parent 03f844d4be
commit b4efe8f374

View File

@ -1212,6 +1212,7 @@ SGPropertyNode::getAliasTarget ()
return _target; return _target;
} else { } else {
_target = find_node_by_value(getRootNode(), _value->getAlias()); _target = find_node_by_value(getRootNode(), _value->getAlias());
return _target;
} }
} }
@ -1227,6 +1228,7 @@ SGPropertyNode::getAliasTarget () const
// FIXME: const cast // FIXME: const cast
_target = _target =
find_node_by_value((SGPropertyNode *)getRootNode(), _value->getAlias()); find_node_by_value((SGPropertyNode *)getRootNode(), _value->getAlias());
return _target;
} }
} }
@ -1342,13 +1344,13 @@ SGPropertyNode::getPath (bool simplify) const
return path; return path;
} }
SGValue::Type SGPropertyNode::Type
SGPropertyNode::getType () const SGPropertyNode::getType () const
{ {
if (_value != 0) if (_value != 0)
return _value->getType(); return (Type)(_value->getType());
else else
return SGValue::UNKNOWN; return UNKNOWN;
} }
@ -1590,11 +1592,11 @@ SGPropertyNode::getValue (const string &relative_path) const
/** /**
* Get the value type for another node. * Get the value type for another node.
*/ */
SGValue::Type SGPropertyNode::Type
SGPropertyNode::getType (const string &relative_path) const SGPropertyNode::getType (const string &relative_path) const
{ {
const SGPropertyNode * node = getNode(relative_path); const SGPropertyNode * node = getNode(relative_path);
return (node == 0 ? SGValue::UNKNOWN : node->getType()); return (node == 0 ? UNKNOWN : (Type)(node->getType()));
} }