From: cantor Date: Wed, 26 Sep 2007 20:08:37 +0000 (+0000) Subject: Fix use of NULL in integer return value. X-Git-Tag: 1.4.1~433 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fxmltooling.git;a=commitdiff_plain;h=9df644eaebc076e59fa6c8805f69d3dc936157b0 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 --- 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) { \