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

Method NewDeclaration

lib/tinyxml2/tinyxml2.cpp:1761–1768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1759
1760
1761XMLDeclaration* XMLDocument::NewDeclaration( const char* str )
1762{
1763 TIXMLASSERT( sizeof( XMLDeclaration ) == _commentPool.ItemSize() );
1764 XMLDeclaration* dec = new (_commentPool.Alloc()) XMLDeclaration( this );
1765 dec->_memPool = &_commentPool;
1766 dec->SetValue( str ? str : "xml version=\"1.0\" encoding=\"UTF-8\"" );
1767 return dec;
1768}
1769
1770
1771XMLUnknown* XMLDocument::NewUnknown( 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