Cosmetic updates.

This commit is contained in:
ehofman 2005-10-23 14:04:42 +00:00
parent 21c64dd60f
commit 3620be8dbc
2 changed files with 3 additions and 3 deletions

View File

@ -912,13 +912,13 @@ SGPropertyNode::getChildren (const char * name) const
/** /**
* Revove child by position. * Remove child by position.
*/ */
SGPropertyNode_ptr SGPropertyNode_ptr
SGPropertyNode::removeChild (int pos, bool keep) SGPropertyNode::removeChild (int pos, bool keep)
{ {
SGPropertyNode_ptr node; SGPropertyNode_ptr node;
if (pos < 0 || pos > _children.size() - 1) if (pos < 0 || pos >= _children.size())
return node; return node;
vector<SGPropertyNode_ptr>::iterator it = _children.begin(); vector<SGPropertyNode_ptr>::iterator it = _children.begin();

View File

@ -1,4 +1,4 @@
// e mat.cxx -- class to handle material properties // mat.cxx -- class to handle material properties
// //
// Written by Curtis Olson, started May 1998. // Written by Curtis Olson, started May 1998.
// //