mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 13:10:05 +00:00
Update dependency libxml2 to v2.11.5
This commit is contained in:
parent
0e633e1808
commit
a98d978cc6
2 changed files with 15 additions and 6 deletions
|
|
@ -11,7 +11,7 @@ class SupercellWxConan(ConanFile):
|
|||
"glm/cci.20230113",
|
||||
"gtest/1.14.0",
|
||||
"libcurl/8.4.0",
|
||||
"libxml2/2.10.4",
|
||||
"libxml2/2.11.5",
|
||||
"openssl/3.1.4",
|
||||
"spdlog/1.12.0",
|
||||
"sqlite3/3.44.0",
|
||||
|
|
|
|||
|
|
@ -100,11 +100,20 @@ std::vector<DirListRecord> DirList(const std::string& baseUrl)
|
|||
}
|
||||
else
|
||||
{
|
||||
htmlDocPtr doc = htmlSAXParseDoc(
|
||||
reinterpret_cast<const xmlChar*>(response.text.c_str()),
|
||||
nullptr,
|
||||
&saxHandler_,
|
||||
&saxData);
|
||||
htmlParserCtxtPtr ctxt = htmlNewSAXParserCtxt(&saxHandler_, &saxData);
|
||||
htmlDocPtr doc = nullptr;
|
||||
|
||||
if (ctxt != nullptr)
|
||||
{
|
||||
doc = htmlCtxtReadDoc(
|
||||
ctxt,
|
||||
reinterpret_cast<const xmlChar*>(response.text.c_str()),
|
||||
baseUrl.c_str(),
|
||||
nullptr,
|
||||
HTML_PARSE_NONET);
|
||||
htmlFreeParserCtxt(ctxt);
|
||||
}
|
||||
|
||||
if (doc != nullptr)
|
||||
{
|
||||
xmlFreeDoc(doc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue