MCPcopy Create free account
hub / github.com/NanoMichael/MicroTeX / NewElement

Method NewElement

src/xml/tinyxml2.cpp:1595–1601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1593
1594
1595XMLElement* XMLDocument::NewElement( const char* name ) {
1596 TIXMLASSERT( sizeof( XMLElement ) == _elementPool.ItemSize() );
1597 XMLElement* ele = new (_elementPool.Alloc()) XMLElement( this );
1598 ele->_memPool = &_elementPool;
1599 ele->SetName( name );
1600 return ele;
1601}
1602
1603
1604XMLComment* XMLDocument::NewComment( const char* str ) {

Callers 1

ShallowCloneMethod · 0.80

Calls 3

ItemSizeMethod · 0.80
AllocMethod · 0.80
SetNameMethod · 0.80

Tested by

no test coverage detected