diff options
author | Brad King <brad.king@kitware.com> | 2016-09-06 12:50:53 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-09-06 12:50:53 (GMT) |
commit | eb226b366f40da2d284bb60d57c2d8bcb85de607 (patch) | |
tree | 7e434877c380b5217577fc66e1e9c5e6ec9309c9 /Source | |
parent | 933fc4ac4708b79c23b4bb1a6c829af4efca7efa (diff) | |
parent | 0039ffa2163665856be1e772146442f2c7418c6c (diff) | |
download | CMake-eb226b366f40da2d284bb60d57c2d8bcb85de607.zip CMake-eb226b366f40da2d284bb60d57c2d8bcb85de607.tar.gz CMake-eb226b366f40da2d284bb60d57c2d8bcb85de607.tar.bz2 |
Merge topic 'cm_nullptr'
0039ffa2 use CM_NULLPTR
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmFilePathUuid.h | 5 | ||||
-rw-r--r-- | Source/cmXMLParser.cxx | 12 |
2 files changed, 9 insertions, 8 deletions
diff --git a/Source/cmFilePathUuid.h b/Source/cmFilePathUuid.h index 87cfcf8..b54dc47 100644 --- a/Source/cmFilePathUuid.h +++ b/Source/cmFilePathUuid.h @@ -52,8 +52,9 @@ public: * @arg outputPrefix optional string to prepend to the result * @arg outputSuffix optional string to append to the result */ - std::string get(const std::string& filePath, const char* outputPrefix = NULL, - const char* outputSuffix = NULL); + std::string get(const std::string& filePath, + const char* outputPrefix = CM_NULLPTR, + const char* outputSuffix = CM_NULLPTR); private: void initParentDirs(const std::string& currentSrcDir, 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) |