MCPcopy Create free account
hub / github.com/JayXon/Leanify / NewElement

Method NewElement

lib/tinyxml2/tinyxml2.cpp:1731–1738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1729
1730
1731XMLElement* XMLDocument::NewElement( const char* name )
1732{
1733 TIXMLASSERT( sizeof( XMLElement ) == _elementPool.ItemSize() );
1734 XMLElement* ele = new (_elementPool.Alloc()) XMLElement( this );
1735 ele->_memPool = &_elementPool;
1736 ele->SetName( name );
1737 return ele;
1738}
1739
1740
1741XMLComment* 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