MCPcopy Create free account
hub / github.com/NanoMichael/MicroTeX / Unlink

Method Unlink

src/xml/tinyxml2.cpp:623–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621
622
623void XMLNode::Unlink( XMLNode* child ) {
624 TIXMLASSERT( child );
625 TIXMLASSERT( child->_document == _document );
626 if ( child == _firstChild ) {
627 _firstChild = _firstChild->_next;
628 }
629 if ( child == _lastChild ) {
630 _lastChild = _lastChild->_prev;
631 }
632
633 if ( child->_prev ) {
634 child->_prev->_next = child->_next;
635 }
636 if ( child->_next ) {
637 child->_next->_prev = child->_prev;
638 }
639 child->_parent = 0;
640}
641
642
643void XMLNode::DeleteChild( XMLNode* node ) {

Callers 2

~XMLNodeMethod · 0.80
InsertChildPreambleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected