Fixed compilation warnings on BCC
git-svn-id: http://pugixml.googlecode.com/svn/trunk@128 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
01d8a24051
commit
fcce7152ac
@ -1841,7 +1841,7 @@ namespace pugi
|
|||||||
bool xml_attribute::as_bool() const
|
bool xml_attribute::as_bool() const
|
||||||
{
|
{
|
||||||
// only look at first char
|
// only look at first char
|
||||||
char first = (_attr && _attr->value) ? *_attr->value : 0;
|
char first = (_attr && _attr->value) ? *_attr->value : '\0';
|
||||||
|
|
||||||
// 1*, t* (true), T* (True), y* (yes), Y* (YES)
|
// 1*, t* (true), T* (True), y* (yes), Y* (YES)
|
||||||
return (first == '1' || first == 't' || first == 'T' || first == 'y' || first == 'Y');
|
return (first == '1' || first == 't' || first == 'T' || first == 'y' || first == 'Y');
|
||||||
|
|||||||
@ -343,7 +343,7 @@ namespace
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return buf;
|
return std::string(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
double convert_string_to_number(const char* string)
|
double convert_string_to_number(const char* string)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user