David patches.
This commit is contained in:
parent
b1a719dd4c
commit
887ffd102f
@ -274,7 +274,7 @@ readProperties (const string &file, SGPropertyNode * start_node)
|
|||||||
* Return the type name.
|
* Return the type name.
|
||||||
*/
|
*/
|
||||||
static const char *
|
static const char *
|
||||||
getTypeName (SGValue::Type type)
|
getTypeName (SGPropertyNode::Type type)
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case SGValue::UNKNOWN:
|
case SGValue::UNKNOWN:
|
||||||
@ -346,7 +346,7 @@ writeNode (ostream &output, const SGPropertyNode * node, int indent)
|
|||||||
if (node->isAlias() && node->getAliasTarget() != 0)
|
if (node->isAlias() && node->getAliasTarget() != 0)
|
||||||
output << " alias=\"" << node->getAliasTarget()->getPath() << "\"/>";
|
output << " alias=\"" << node->getAliasTarget()->getPath() << "\"/>";
|
||||||
else {
|
else {
|
||||||
if (node->getType() != SGValue::UNKNOWN)
|
if (node->getType() != SGPropertyNode::UNKNOWN)
|
||||||
output << " type=\"" << getTypeName(node->getType()) << '"';
|
output << " type=\"" << getTypeName(node->getType()) << '"';
|
||||||
output << '>';
|
output << '>';
|
||||||
writeData(output, node->getStringValue());
|
writeData(output, node->getStringValue());
|
||||||
|
Loading…
Reference in New Issue
Block a user