MCPcopy Create free account
hub / github.com/JayXon/Leanify / InsertEndChild

Method InsertEndChild

lib/tinyxml2/tinyxml2.cpp:704–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702
703
704XMLNode* XMLNode::InsertEndChild( XMLNode* addThis )
705{
706 TIXMLASSERT( addThis );
707 if ( addThis->_document != _document ) {
708 TIXMLASSERT( false );
709 return 0;
710 }
711 InsertChildPreamble( addThis );
712
713 if ( _lastChild ) {
714 TIXMLASSERT( _firstChild );
715 TIXMLASSERT( _lastChild->_next == 0 );
716 _lastChild->_next = addThis;
717 addThis->_prev = _lastChild;
718 _lastChild = addThis;
719
720 addThis->_next = 0;
721 }
722 else {
723 TIXMLASSERT( _firstChild == 0 );
724 _firstChild = _lastChild = addThis;
725
726 addThis->_prev = 0;
727 addThis->_next = 0;
728 }
729 addThis->_parent = this;
730 return addThis;
731}
732
733
734XMLNode* XMLNode::InsertFirstChild( XMLNode* addThis )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected