MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / Unlink

Method Unlink

Dependencies/tinyxml2/src/tinyxml2.cpp:804–825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802
803
804void XMLNode::Unlink( XMLNode* child )
805{
806 TIXMLASSERT( child );
807 TIXMLASSERT( child->_document == _document );
808 TIXMLASSERT( child->_parent == this );
809 if ( child == _firstChild ) {
810 _firstChild = _firstChild->_next;
811 }
812 if ( child == _lastChild ) {
813 _lastChild = _lastChild->_prev;
814 }
815
816 if ( child->_prev ) {
817 child->_prev->_next = child->_next;
818 }
819 if ( child->_next ) {
820 child->_next->_prev = child->_prev;
821 }
822 child->_next = 0;
823 child->_prev = 0;
824 child->_parent = 0;
825}
826
827
828void XMLNode::DeleteChild( XMLNode* node )

Callers 2

~XMLNodeMethod · 0.45
InsertChildPreambleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected