mirror of https://github.com/AxioDL/tinyxml2.git
Merge pull request #468 from Dmitry-Me/reuseDeleteChild
Reuse DeleteChild()
This commit is contained in:
commit
a369d4b614
|
@ -760,11 +760,7 @@ void XMLNode::DeleteChildren()
|
|||
{
|
||||
while( _firstChild ) {
|
||||
TIXMLASSERT( _lastChild );
|
||||
TIXMLASSERT( _firstChild->_document == _document );
|
||||
XMLNode* node = _firstChild;
|
||||
Unlink( node );
|
||||
|
||||
DeleteNode( node );
|
||||
DeleteChild( _firstChild );
|
||||
}
|
||||
_firstChild = _lastChild = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue