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)
|
if (!doc)
|
||||||
{
|
{
|
||||||
xmlError* error = xmlCtxtGetLastError(ctx_);
|
const xmlError* error = xmlCtxtGetLastError(ctx_);
|
||||||
if (error)
|
if (error)
|
||||||
{
|
{
|
||||||
std::string msg("XML document not well formed:\n");
|
std::string msg("XML document not well formed:\n");
|
||||||
|
@ -128,7 +128,7 @@ class libxml2_loader : util::noncopyable
|
||||||
if (!doc)
|
if (!doc)
|
||||||
{
|
{
|
||||||
std::string msg("XML document not well formed");
|
std::string msg("XML document not well formed");
|
||||||
xmlError* error = xmlCtxtGetLastError(ctx_);
|
const xmlError* error = xmlCtxtGetLastError(ctx_);
|
||||||
if (error)
|
if (error)
|
||||||
{
|
{
|
||||||
msg += ":\n";
|
msg += ":\n";
|
||||||
|
|
Loading…
Add table
Reference in a new issue