test/source/xmltesttools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit ef806e857625768f2fddadfddc7ed5e2c80385cd Author: Caolán McNamara <[email protected]> AuthorDate: Wed Oct 15 14:51:47 2025 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Thu Oct 16 17:24:00 2025 +0200 replace xmlParseDoc with xmlReadDoc XML_PARSE_NODICT is mentioned in the doc as the equivalent of the xmlParseDoc default, and add XML_PARSE_HUGE which is the motivation for the change so xml with embedded fonts can still be asserted about Change-Id: I139bfeb06bc51b5cbd956655977d18a13f0dbe75 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192446 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Michael Stahl <[email protected]> diff --git a/test/source/xmltesttools.cxx b/test/source/xmltesttools.cxx index 78ed8a83d377..ebe0761f416c 100644 --- a/test/source/xmltesttools.cxx +++ b/test/source/xmltesttools.cxx @@ -57,7 +57,7 @@ xmlDocUniquePtr XmlTestTools::parseXmlStream(SvStream* pStream) pBuffer[nSize] = 0; auto pCharBuffer = reinterpret_cast<xmlChar*>(pBuffer.get()); SAL_INFO("test", "XmlTestTools::parseXmlStream: pBuffer is '" << pCharBuffer << "'"); - return xmlDocUniquePtr(xmlParseDoc(pCharBuffer)); + return xmlDocUniquePtr(xmlReadDoc(pCharBuffer, nullptr, nullptr, XML_PARSE_NODICT | XML_PARSE_HUGE)); } xmlDocUniquePtr XmlTestTools::dumpAndParse(MetafileXmlDump& rDumper, const GDIMetaFile& rGDIMetaFile)
