MCPcopy Create free account
hub / github.com/9miao/CrossApp / InsertEndChild

Method InsertEndChild

CrossApp/support/tinyxml2/tinyxml2.cpp:653–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

ParseDeepMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected