*/
SGPropertyNode::~SGPropertyNode ()
{
- for (int i = 0; i < (int)_children.size(); i++)
+ for (int i = 0; i < (int)_children.size(); i++) {
delete _children[i];
+ }
clear_value();
}
SG_USING_STD(ostream);
#endif
+#ifdef NONE
+#pragma warn A sloppy coder has defined NONE as a macro!
+#undef NONE
+#endif
+
#ifdef ALIAS
#pragma warn A sloppy coder has defined ALIAS as a macro!
#undef ALIAS
/**
* Check a single mode attribute for the property node.
*/
- bool getAttribute (Attribute attr) const { return (bool)(_attr & attr); }
+ bool getAttribute (Attribute attr) const { return ((_attr & attr) != 0); }
/**