summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-09-17 18:14:05 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-09-17 18:14:05 +0000
commitfcce7152ac00a3ed227eafd135e570584392cd08 (patch)
tree58fcf043da31326298d878a28133f248f6ed4e88
parent01d8a2405191b931cc44e18ec5379e9846b45849 (diff)
Fixed compilation warnings on BCC
git-svn-id: http://pugixml.googlecode.com/svn/trunk@128 99668b35-9821-0410-8761-19e4c4f06640
-rw-r--r--src/pugixml.cpp2
-rw-r--r--src/pugixpath.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index c1797c5..0f3bc29 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -1841,7 +1841,7 @@ namespace pugi
bool xml_attribute::as_bool() const
{
// 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)
return (first == '1' || first == 't' || first == 'T' || first == 'y' || first == 'Y');
diff --git a/src/pugixpath.cpp b/src/pugixpath.cpp
index de166f4..b174e9c 100644
--- a/src/pugixpath.cpp
+++ b/src/pugixpath.cpp
@@ -343,7 +343,7 @@ namespace
}
}
- return buf;
+ return std::string(buf);
}
double convert_string_to_number(const char* string)