MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / Unlink

Method Unlink

sourcecommon/tinyxml2.cpp:612–628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610
611
612void XMLNode::Unlink( XMLNode* child )
613{
614 if ( child == _firstChild ) {
615 _firstChild = _firstChild->_next;
616 }
617 if ( child == _lastChild ) {
618 _lastChild = _lastChild->_prev;
619 }
620
621 if ( child->_prev ) {
622 child->_prev->_next = child->_next;
623 }
624 if ( child->_next ) {
625 child->_next->_prev = child->_prev;
626 }
627 child->_parent = 0;
628}
629
630
631void XMLNode::DeleteChild( XMLNode* node )

Callers 4

~XMLNodeMethod · 0.80
InsertEndChildMethod · 0.80
InsertFirstChildMethod · 0.80
InsertAfterChildMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected