mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-10 01:09:34 +00:00
Fixed: %s needs a const char*
This commit is contained in:
parent
27d3fd12d9
commit
93fa57d25c
1 changed files with 4 additions and 4 deletions
|
@ -76,7 +76,7 @@ xmlNodePtr GetFirstChildNode (xmlNodePtr xmlNode, const std::string &filename, c
|
|||
if (result) return result;
|
||||
|
||||
// Output a formated error
|
||||
XMLError (xmlNode, filename.c_str(), "Can't find XML node named (%s)", childName);
|
||||
XMLError (xmlNode, filename.c_str(), "Can't find XML node named (%s)", childName.c_str());
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -88,7 +88,7 @@ bool GetPropertyString (string &result, const std::string &filename, xmlNodePtr
|
|||
if (!CIXml::getPropertyString (result, xmlNode, propName))
|
||||
{
|
||||
// Output a formated error
|
||||
XMLError (xmlNode, filename, "Can't find XML node property (%s)", propName);
|
||||
XMLError (xmlNode, filename, "Can't find XML node property (%s)", propName.c_str());
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
@ -204,14 +204,14 @@ bool GetNodeString (string &result, const std::string &filename, xmlNodePtr xmlN
|
|||
xmlNodePtr node = CIXml::getFirstChildNode (xmlNode, nodeName);
|
||||
if (!node)
|
||||
{
|
||||
XMLError (xmlNode, filename, "Can't find XML node named (%s)", nodeName);
|
||||
XMLError (xmlNode, filename, "Can't find XML node named (%s)", nodeName.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
// Get the node string
|
||||
if (!CIXml::getContentString (result, node))
|
||||
{
|
||||
XMLError (xmlNode, filename, "Can't find any text in the node named (%s)", nodeName);
|
||||
XMLError (xmlNode, filename, "Can't find any text in the node named (%s)", nodeName.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue