Merge pull request #468 from Dmitry-Me/reuseDeleteChild
Reuse DeleteChild()
This commit is contained in:
@@ -760,11 +760,7 @@ void XMLNode::DeleteChildren()
|
|||||||
{
|
{
|
||||||
while( _firstChild ) {
|
while( _firstChild ) {
|
||||||
TIXMLASSERT( _lastChild );
|
TIXMLASSERT( _lastChild );
|
||||||
TIXMLASSERT( _firstChild->_document == _document );
|
DeleteChild( _firstChild );
|
||||||
XMLNode* node = _firstChild;
|
|
||||||
Unlink( node );
|
|
||||||
|
|
||||||
DeleteNode( node );
|
|
||||||
}
|
}
|
||||||
_firstChild = _lastChild = 0;
|
_firstChild = _lastChild = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user