summaryrefslogtreecommitdiff
path: root/Source/CTest/cmCTestBuildAndTestHandler.cxx
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals.cid@kdab.com>2019-02-14 17:29:57 +0100
committerBrad King <brad.king@kitware.com>2019-02-15 07:25:47 -0500
commitae5e97a00568d15dedea073b58668e646e3c0d2e (patch)
tree10ba898956021469c0de5db595ca511c0c83cffd /Source/CTest/cmCTestBuildAndTestHandler.cxx
parente3353a0175fb27bc2967c3df78b8be1c0615b21d (diff)
downloadcmake-ae5e97a00568d15dedea073b58668e646e3c0d2e.tar.gz
Delete some default constructors and assignment operators
They are unused, but if someone used them they would lead to problems since they would copy the internal raw pointers and the destructor would cause double delete
Diffstat (limited to 'Source/CTest/cmCTestBuildAndTestHandler.cxx')
-rw-r--r--Source/CTest/cmCTestBuildAndTestHandler.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestBuildAndTestHandler.cxx b/Source/CTest/cmCTestBuildAndTestHandler.cxx
index 696b52fa11..b2c88df6d1 100644
--- a/Source/CTest/cmCTestBuildAndTestHandler.cxx
+++ b/Source/CTest/cmCTestBuildAndTestHandler.cxx
@@ -140,6 +140,11 @@ public:
cmSystemTools::SetStdoutCallback(nullptr);
cmSystemTools::SetMessageCallback(nullptr);
}
+
+ cmCTestBuildAndTestCaptureRAII(const cmCTestBuildAndTestCaptureRAII&) =
+ delete;
+ cmCTestBuildAndTestCaptureRAII& operator=(
+ const cmCTestBuildAndTestCaptureRAII&) = delete;
};
int cmCTestBuildAndTestHandler::RunCMakeAndTest(std::string* outstring)