David patches.

This commit is contained in:
curt 2001-06-12 02:52:07 +00:00
parent b1a719dd4c
commit 887ffd102f

View 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());