summaryrefslogtreecommitdiffstats
path: root/Source/cmXMLParser.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-09-05 21:18:05 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-09-05 21:18:05 (GMT)
commit0039ffa2163665856be1e772146442f2c7418c6c (patch)
treeb9357fdea5bbe602bb34412d45bc280c5f6bbd9a /Source/cmXMLParser.cxx
parentbfdf1322e7638687c96b323b1df20fd9c08b3044 (diff)
downloadCMake-0039ffa2163665856be1e772146442f2c7418c6c.zip
CMake-0039ffa2163665856be1e772146442f2c7418c6c.tar.gz
CMake-0039ffa2163665856be1e772146442f2c7418c6c.tar.bz2
use CM_NULLPTR
Diffstat (limited to 'Source/cmXMLParser.cxx')
-rw-r--r--Source/cmXMLParser.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmXMLParser.cxx b/Source/cmXMLParser.cxx
index 7c53a3d..9878912 100644
--- a/Source/cmXMLParser.cxx
+++ b/Source/cmXMLParser.cxx
@@ -20,10 +20,10 @@
cmXMLParser::cmXMLParser()
{
- this->Parser = 0;
+ this->Parser = CM_NULLPTR;
this->ParseError = 0;
- this->ReportCallback = 0;
- this->ReportCallbackData = 0;
+ this->ReportCallback = CM_NULLPTR;
+ this->ReportCallbackData = CM_NULLPTR;
}
cmXMLParser::~cmXMLParser()
@@ -64,7 +64,7 @@ int cmXMLParser::InitializeParser()
}
// Create the expat XML parser.
- this->Parser = XML_ParserCreate(0);
+ this->Parser = XML_ParserCreate(CM_NULLPTR);
XML_SetElementHandler(static_cast<XML_Parser>(this->Parser),
&cmXMLParserStartElement, &cmXMLParserEndElement);
XML_SetCharacterDataHandler(static_cast<XML_Parser>(this->Parser),
@@ -108,7 +108,7 @@ int cmXMLParser::CleanupParser()
// Clean up the parser.
XML_ParserFree(static_cast<XML_Parser>(this->Parser));
- this->Parser = 0;
+ this->Parser = CM_NULLPTR;
return result;
}
@@ -165,7 +165,7 @@ const char* cmXMLParser::FindAttribute(const char** atts,
}
}
}
- return 0;
+ return CM_NULLPTR;
}
void cmXMLParserStartElement(void* parser, const char* name, const char** atts)