MCPcopy Create free account
hub / github.com/cemu-project/Cemu / InsertFirstChild

Method InsertFirstChild

src/util/tinyxml2/tinyxml2.cpp:871–899  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

ACPUpdateSaveTimeStampFunction · 0.80
SaveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected