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

Method NewComment

Source/ThirdParty/tinyxml2/tinyxml2.cpp:1893–1900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1891
1892
1893XMLComment* XMLDocument::NewComment( const char* str )
1894{
1895 TIXMLASSERT( sizeof( XMLComment ) == _commentPool.ItemSize() );
1896 XMLComment* comment = new (_commentPool.Alloc()) XMLComment( this );
1897 comment->_memPool = &_commentPool;
1898 comment->SetValue( str );
1899 return comment;
1900}
1901
1902
1903XMLText* XMLDocument::NewText( const char* str )

Callers 1

ShallowCloneMethod · 0.80

Calls 3

ItemSizeMethod · 0.45
AllocMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected