mirror of https://github.com/AxioDL/tinyxml2.git
Extract duplicated text string
This commit is contained in:
parent
37bc3aca42
commit
5d1aec10fa
|
@ -1615,13 +1615,14 @@ int main( int argc, const char ** argv )
|
||||||
// If it doesn't assert, it passes. Caused by objects
|
// If it doesn't assert, it passes. Caused by objects
|
||||||
// getting created during parsing which are then
|
// getting created during parsing which are then
|
||||||
// inaccessible in the memory pools.
|
// inaccessible in the memory pools.
|
||||||
|
const char* xmlText = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><test>";
|
||||||
{
|
{
|
||||||
XMLDocument doc;
|
XMLDocument doc;
|
||||||
doc.Parse("<?xml version=\"1.0\" encoding=\"UTF-8\"?><test>");
|
doc.Parse(xmlText);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
XMLDocument doc;
|
XMLDocument doc;
|
||||||
doc.Parse("<?xml version=\"1.0\" encoding=\"UTF-8\"?><test>");
|
doc.Parse(xmlText);
|
||||||
doc.Clear();
|
doc.Clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue