diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-06-22 23:02:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-06-27 14:37:41 (GMT) |
commit | 7647f6afa46b6b5020cc1d93b3f75d3358a28f8a (patch) | |
tree | dfd7acf9932285277a56c39462d80d8fda0d8655 /Source/CTest/cmCTestMemCheckHandler.cxx | |
parent | 5286110d6f106e03ee6c5bdeea48d62674656c9f (diff) | |
download | CMake-7647f6afa46b6b5020cc1d93b3f75d3358a28f8a.zip CMake-7647f6afa46b6b5020cc1d93b3f75d3358a28f8a.tar.gz CMake-7647f6afa46b6b5020cc1d93b3f75d3358a28f8a.tar.bz2 |
Add CM_OVERRIDE to some functions
Run clang-tidy's modernize-use-override checker. This checker must have
issues in version 3.8. It has way too little matches. And it adds
override to destructors. Revert the changes on the destructors and
change override to CM_OVERRIDE.
Diffstat (limited to 'Source/CTest/cmCTestMemCheckHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestMemCheckHandler.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestMemCheckHandler.cxx b/Source/CTest/cmCTestMemCheckHandler.cxx index 5f70f66..6f1a2c4 100644 --- a/Source/CTest/cmCTestMemCheckHandler.cxx +++ b/Source/CTest/cmCTestMemCheckHandler.cxx @@ -61,7 +61,7 @@ public: this->CTest = c; this->SetErrorCallback(xmlReportError, (void*)c); } - void StartElement(const std::string& name, const char** atts) + void StartElement(const std::string& name, const char** atts) CM_OVERRIDE { if (name == "MemoryLeak" || name == "ResourceLeak") { this->Errors.push_back(cmCTestMemCheckHandler::MLK); @@ -78,7 +78,7 @@ public: ostr << "\n"; this->Log += ostr.str(); } - void EndElement(const std::string&) {} + void EndElement(const std::string&) CM_OVERRIDE {} const char* GetAttribute(const char* name, const char** atts) { |