MCPcopy Create free account
hub / github.com/ajkhoury/ReClassEx / InsertEndChild

Method InsertEndChild

ReClass/tinyxml2.cpp:842–869  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

DeepCloneMethod · 0.80
DeepCopyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected