diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-08-23 07:41:23 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-08-27 07:58:46 (GMT) |
commit | 190e3825d44d4f846d37e1ec7372f5829a5b6b3e (patch) | |
tree | 85605643bc6fcdcb455d5fe58469a08874ef8673 /Source/CTest/cmCTestMemCheckHandler.cxx | |
parent | 2ade9a0264b7c8d4e97d9d820e8c1531f3d1a43c (diff) | |
download | CMake-190e3825d44d4f846d37e1ec7372f5829a5b6b3e.zip CMake-190e3825d44d4f846d37e1ec7372f5829a5b6b3e.tar.gz CMake-190e3825d44d4f846d37e1ec7372f5829a5b6b3e.tar.bz2 |
Replace C-style casts
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 848e505..7d11550 100644 --- a/Source/CTest/cmCTestMemCheckHandler.cxx +++ b/Source/CTest/cmCTestMemCheckHandler.cxx @@ -33,7 +33,7 @@ static CatToErrorType cmCTestMemCheckBoundsChecker[] = { static void xmlReportError(int line, const char* msg, void* data) { - cmCTest* ctest = (cmCTest*)data; + cmCTest* ctest = reinterpret_cast<cmCTest*>(data); cmCTestLog(ctest, ERROR_MESSAGE, "Error parsing XML in stream at line " << line << ": " << msg << std::endl); } @@ -45,7 +45,7 @@ public: cmBoundsCheckerParser(cmCTest* c) { this->CTest = c; - this->SetErrorCallback(xmlReportError, (void*)c); + this->SetErrorCallback(xmlReportError, c); } void StartElement(const std::string& name, const char** atts) CM_OVERRIDE { |