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

Method InsertEndChild

src/xml/tinyxml2.cpp:651–676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

649
650
651XMLNode* XMLNode::InsertEndChild( XMLNode* addThis ) {
652 TIXMLASSERT( addThis );
653 if ( addThis->_document != _document ) {
654 TIXMLASSERT( false );
655 return 0;
656 }
657 InsertChildPreamble( addThis );
658
659 if ( _lastChild ) {
660 TIXMLASSERT( _firstChild );
661 TIXMLASSERT( _lastChild->_next == 0 );
662 _lastChild->_next = addThis;
663 addThis->_prev = _lastChild;
664 _lastChild = addThis;
665
666 addThis->_next = 0;
667 } else {
668 TIXMLASSERT( _firstChild == 0 );
669 _firstChild = _lastChild = addThis;
670
671 addThis->_prev = 0;
672 addThis->_next = 0;
673 }
674 addThis->_parent = this;
675 return addThis;
676}
677
678
679XMLNode* XMLNode::InsertFirstChild( XMLNode* addThis ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected