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

Method NewComment

lib/tinyxml2/tinyxml2.cpp:1741–1748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1739
1740
1741XMLComment* XMLDocument::NewComment( const char* str )
1742{
1743 TIXMLASSERT( sizeof( XMLComment ) == _commentPool.ItemSize() );
1744 XMLComment* comment = new (_commentPool.Alloc()) XMLComment( this );
1745 comment->_memPool = &_commentPool;
1746 comment->SetValue( str );
1747 return comment;
1748}
1749
1750
1751XMLText* XMLDocument::NewText( const char* str )

Callers 1

ShallowCloneMethod · 0.80

Calls 3

ItemSizeMethod · 0.80
AllocMethod · 0.80
SetValueMethod · 0.80

Tested by

no test coverage detected