From 9df644eaebc076e59fa6c8805f69d3dc936157b0 Mon Sep 17 00:00:00 2001 From: cantor Date: Wed, 26 Sep 2007 20:08:37 +0000 Subject: [PATCH] Fix use of NULL in integer return value. git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@393 de75baf8-a10c-0410-a50a-987c0e22f00f --- xmltooling/base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmltooling/base.h b/xmltooling/base.h index 237f798..3a7fe84 100644 --- a/xmltooling/base.h +++ b/xmltooling/base.h @@ -1093,7 +1093,7 @@ #define DECL_INTEGER_CONTENT(proper) \ XMLTOOLING_DOXYGEN(Returns proper in integer form after a NULL indicator.) \ std::pair get##proper() const { \ - return std::make_pair((getTextContent()!=NULL), (getTextContent()!=NULL ? xercesc::XMLString::parseInt(getTextContent()) : NULL)); \ + return std::make_pair((getTextContent()!=NULL), (getTextContent()!=NULL ? xercesc::XMLString::parseInt(getTextContent()) : 0)); \ } \ XMLTOOLING_DOXYGEN(Sets proper.) \ void set##proper(int proper) { \ -- 2.1.4