| 1611 | |
| 1612 | |
| 1613 | XMLText* XMLDocument::NewText( const char* str ) { |
| 1614 | TIXMLASSERT( sizeof( XMLText ) == _textPool.ItemSize() ); |
| 1615 | XMLText* text = new (_textPool.Alloc()) XMLText( this ); |
| 1616 | text->_memPool = &_textPool; |
| 1617 | text->SetValue( str ); |
| 1618 | return text; |
| 1619 | } |
| 1620 | |
| 1621 | |
| 1622 | XMLDeclaration* XMLDocument::NewDeclaration( const char* str ) { |
no test coverage detected