diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-11-08 13:52:11 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-11-08 13:52:11 +0000 |
commit | c8a8b30bddf0df8f137203b0a1533c46358000be (patch) | |
tree | 2d5be9f11727b6184e77bc6dcf30781890ca51f8 /src/pugixml.cpp | |
parent | eaa078b76a6be5417e73b3fc4f5f78642d3ca6c4 (diff) |
XPath: Fixed const-correctness, added boolean operators and operator! for Borland compilers, added operator[], minor other changes
git-svn-id: http://pugixml.googlecode.com/svn/trunk@220 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r-- | src/pugixml.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 2e17fae..a6160e3 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -1953,12 +1953,12 @@ namespace pugi #ifdef __BORLANDC__
bool operator&&(const xml_attribute& lhs, bool rhs)
{
- return lhs ? rhs : false;
+ return (bool)lhs && rhs;
}
bool operator||(const xml_attribute& lhs, bool rhs)
{
- return lhs ? true : rhs;
+ return (bool)lhs || rhs;
}
#endif
@@ -2720,12 +2720,12 @@ namespace pugi #ifdef __BORLANDC__
bool operator&&(const xml_node& lhs, bool rhs)
{
- return lhs ? rhs : false;
+ return (bool)lhs && rhs;
}
bool operator||(const xml_node& lhs, bool rhs)
{
- return lhs ? true : rhs;
+ return (bool)lhs || rhs;
}
#endif
|