Merge pull request #4423 from hummeltech/LibXML2_2.12.0_Support
Fix broken builds with libxml2 >= v2.12.0
This commit is contained in:
commit
437feebaf1
1 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ class libxml2_loader : util::noncopyable
|
|||
|
||||
if (!doc)
|
||||
{
|
||||
xmlError* error = xmlCtxtGetLastError(ctx_);
|
||||
const xmlError* error = xmlCtxtGetLastError(ctx_);
|
||||
if (error)
|
||||
{
|
||||
std::string msg("XML document not well formed:\n");
|
||||
|
@ -128,7 +128,7 @@ class libxml2_loader : util::noncopyable
|
|||
if (!doc)
|
||||
{
|
||||
std::string msg("XML document not well formed");
|
||||
xmlError* error = xmlCtxtGetLastError(ctx_);
|
||||
const xmlError* error = xmlCtxtGetLastError(ctx_);
|
||||
if (error)
|
||||
{
|
||||
msg += ":\n";
|
||||
|
|
Loading…
Reference in a new issue