MCPcopy Create free account
hub / github.com/PolygonTek/BlueshiftEngine / NewElement

Method NewElement

Source/ThirdParty/tinyxml2/tinyxml2.cpp:1883–1890  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1881
1882
1883XMLElement* XMLDocument::NewElement( const char* name )
1884{
1885 TIXMLASSERT( sizeof( XMLElement ) == _elementPool.ItemSize() );
1886 XMLElement* ele = new (_elementPool.Alloc()) XMLElement( this );
1887 ele->_memPool = &_elementPool;
1888 ele->SetName( name );
1889 return ele;
1890}
1891
1892
1893XMLComment* XMLDocument::NewComment( const char* str )

Callers 1

ShallowCloneMethod · 0.80

Calls 3

ItemSizeMethod · 0.45
AllocMethod · 0.45
SetNameMethod · 0.45

Tested by

no test coverage detected