MCPcopy Create free account
hub / github.com/avast/retdec / Unlink

Method Unlink

deps/tinyxml2/tinyxml2.cpp:826–847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824
825
826void XMLNode::Unlink( XMLNode* child )
827{
828 TIXMLASSERT( child );
829 TIXMLASSERT( child->_document == _document );
830 TIXMLASSERT( child->_parent == this );
831 if ( child == _firstChild ) {
832 _firstChild = _firstChild->_next;
833 }
834 if ( child == _lastChild ) {
835 _lastChild = _lastChild->_prev;
836 }
837
838 if ( child->_prev ) {
839 child->_prev->_next = child->_next;
840 }
841 if ( child->_next ) {
842 child->_next->_prev = child->_prev;
843 }
844 child->_next = 0;
845 child->_prev = 0;
846 child->_parent = 0;
847}
848
849
850void XMLNode::DeleteChild( XMLNode* node )

Callers 2

~XMLNodeMethod · 0.80
InsertChildPreambleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected