MCPcopy Create free account
hub / github.com/MediaArea/MediaInfoLib / InsertEndChild

Method InsertEndChild

Source/ThirdParty/tinyxml2/tinyxml2.cpp:841–868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

839
840
841XMLNode* XMLNode::InsertEndChild( XMLNode* addThis )
842{
843 TIXMLASSERT( addThis );
844 if ( addThis->_document != _document ) {
845 TIXMLASSERT( false );
846 return 0;
847 }
848 InsertChildPreamble( addThis );
849
850 if ( _lastChild ) {
851 TIXMLASSERT( _firstChild );
852 TIXMLASSERT( _lastChild->_next == 0 );
853 _lastChild->_next = addThis;
854 addThis->_prev = _lastChild;
855 _lastChild = addThis;
856
857 addThis->_next = 0;
858 }
859 else {
860 TIXMLASSERT( _firstChild == 0 );
861 _firstChild = _lastChild = addThis;
862
863 addThis->_prev = 0;
864 addThis->_next = 0;
865 }
866 addThis->_parent = this;
867 return addThis;
868}
869
870
871XMLNode* XMLNode::InsertFirstChild( XMLNode* addThis )

Callers 2

DeepCloneMethod · 0.80
DeepCopyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected