MCPcopy Create free account
hub / github.com/crossuo/crossuo / InsertEndChild

Method InsertEndChild

external/tinyxml2.cpp:873–900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

871
872
873XMLNode* XMLNode::InsertEndChild( XMLNode* addThis )
874{
875 TIXMLASSERT( addThis );
876 if ( addThis->_document != _document ) {
877 TIXMLASSERT( false );
878 return 0;
879 }
880 InsertChildPreamble( addThis );
881
882 if ( _lastChild ) {
883 TIXMLASSERT( _firstChild );
884 TIXMLASSERT( _lastChild->_next == 0 );
885 _lastChild->_next = addThis;
886 addThis->_prev = _lastChild;
887 _lastChild = addThis;
888
889 addThis->_next = 0;
890 }
891 else {
892 TIXMLASSERT( _firstChild == 0 );
893 _firstChild = _lastChild = addThis;
894
895 addThis->_prev = 0;
896 addThis->_next = 0;
897 }
898 addThis->_parent = this;
899 return addThis;
900}
901
902
903XMLNode* XMLNode::InsertFirstChild( XMLNode* addThis )

Callers 2

DeepCloneMethod · 0.80
DeepCopyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected