MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / NewElement

Method NewElement

Source/3rdParty/tinyxml2/tinyxml2.cpp:1355–1360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1353}
1354
1355XMLElement* XMLDocument::NewElement(const char* name) {
1356 XMLElement* ele = new (_elementPool.Alloc()) XMLElement(this);
1357 ele->_memPool = &_elementPool;
1358 ele->SetName(name);
1359 return ele;
1360}
1361
1362XMLComment* XMLDocument::NewComment(const char* str) {
1363 XMLComment* comment = new (_commentPool.Alloc()) XMLComment(this);

Callers 1

ShallowCloneMethod · 0.80

Calls 2

AllocMethod · 0.45
SetNameMethod · 0.45

Tested by

no test coverage detected