xmlinterface use const char instand char

This commit is contained in:
Jacek Jendrzej
2015-03-20 12:05:22 +01:00
parent 40fe7fae34
commit 8227a01592
9 changed files with 50 additions and 50 deletions

View File

@@ -252,7 +252,7 @@ bool cYTFeedParser::saveToFile(const char * name, std::string str)
std::string cYTFeedParser::getXmlName(xmlNodePtr node)
{
std::string result;
char * name = xmlGetName(node);
const char * name = xmlGetName(node);
if (name)
result = name;
return result;
@@ -261,7 +261,7 @@ std::string cYTFeedParser::getXmlName(xmlNodePtr node)
std::string cYTFeedParser::getXmlAttr(xmlNodePtr node, const char * attr)
{
std::string result;
char * value = xmlGetAttribute(node, attr);
const char * value = xmlGetAttribute(node, attr);
if (value)
result = value;
return result;
@@ -270,7 +270,7 @@ std::string cYTFeedParser::getXmlAttr(xmlNodePtr node, const char * attr)
std::string cYTFeedParser::getXmlData(xmlNodePtr node)
{
std::string result;
char * value = xmlGetData(node);
const char * value = xmlGetData(node);
if (value)
result = value;
return result;