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

Method NewComment

src/xml/tinyxml2.cpp:1604–1610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1602
1603
1604XMLComment* XMLDocument::NewComment( const char* str ) {
1605 TIXMLASSERT( sizeof( XMLComment ) == _commentPool.ItemSize() );
1606 XMLComment* comment = new (_commentPool.Alloc()) XMLComment( this );
1607 comment->_memPool = &_commentPool;
1608 comment->SetValue( str );
1609 return comment;
1610}
1611
1612
1613XMLText* 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