Manager::readXml() doesn't modify its input

This commit is contained in:
Veloman Yunkan 2021-04-09 17:22:09 +04:00 committed by Matthieu Gautier
parent 5c289abd0e
commit 9033f2f28e
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ bool Manager::readXml(const std::string& xml,
{ {
pugi::xml_document doc; pugi::xml_document doc;
pugi::xml_parse_result result pugi::xml_parse_result result
= doc.load_buffer_inplace((void*)xml.data(), xml.size()); = doc.load_buffer((void*)xml.data(), xml.size());
if (result) { if (result) {
this->parseXmlDom(doc, readOnly, libraryPath, trustLibrary); this->parseXmlDom(doc, readOnly, libraryPath, trustLibrary);