workaround for DBG_UTIL XML correctness checks

The current check will always be hit as the StartXmlElement does not use
a call that puts the element on the stack. So copy the pattern for the
EndXmlElement class.

However we should work on getting rid of these ugly hacks.

Change-Id: Id1141f4afc78a0cae1e4b7accae76e6ae08b77a7
This commit is contained in:
Markus Mohrhard
2014-06-08 07:05:20 +02:00
parent 0620ca9d81
commit 0179d35fb3

View File

@@ -1338,7 +1338,8 @@ public:
void EndXmlElement::SaveXml( XclExpXmlStream& rStrm )
{
rStrm.GetCurrentStream()->endElement( mnElement );
sax_fastparser::FSHelperPtr pStream = rStrm.GetCurrentStream();
pStream->write("</")->writeId(mnElement)->write(">");
}
class EndHeaderElement : public EndXmlElement