From c8a8b30bddf0df8f137203b0a1533c46358000be Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sun, 8 Nov 2009 13:52:11 +0000 Subject: 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 --- src/pugixml.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/pugixml.cpp') 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 -- cgit v1.2.3