diff options
author | Brad King <brad.king@kitware.com> | 2019-10-29 17:41:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-29 17:47:23 (GMT) |
commit | 0187e522448c8fe92c15d4a983afac36950d1d59 (patch) | |
tree | 5e82693fa85bd5af24b49fa8a46cb2f5af05e1e5 | |
parent | 1fb483922557003aedf59b01742928543977e013 (diff) | |
download | CMake-0187e522448c8fe92c15d4a983afac36950d1d59.zip CMake-0187e522448c8fe92c15d4a983afac36950d1d59.tar.gz CMake-0187e522448c8fe92c15d4a983afac36950d1d59.tar.bz2 |
cmCTestRunTest: Use inline member initializers
-rw-r--r-- | Source/CTest/cmCTestRunTest.cxx | 3 | ||||
-rw-r--r-- | Source/CTest/cmCTestRunTest.h | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/Source/CTest/cmCTestRunTest.cxx b/Source/CTest/cmCTestRunTest.cxx index 7f7f736..2e7836a 100644 --- a/Source/CTest/cmCTestRunTest.cxx +++ b/Source/CTest/cmCTestRunTest.cxx @@ -34,9 +34,6 @@ cmCTestRunTest::cmCTestRunTest(cmCTestMultiProcessHandler& multiHandler) this->TestResult.Status = cmCTestTestHandler::NOT_RUN; this->TestResult.TestCount = 0; this->TestResult.Properties = nullptr; - this->NumberOfRunsLeft = 1; // default to 1 run of the test - this->RunUntilFail = false; // default to run the test once - this->RunAgain = false; // default to not having to run again } void cmCTestRunTest::CheckOutput(std::string const& line) diff --git a/Source/CTest/cmCTestRunTest.h b/Source/CTest/cmCTestRunTest.h index 085a6b8..7b202d1 100644 --- a/Source/CTest/cmCTestRunTest.h +++ b/Source/CTest/cmCTestRunTest.h @@ -129,9 +129,9 @@ private: std::vector<std::map< std::string, std::vector<cmCTestMultiProcessHandler::HardwareAllocation>>> AllocatedHardware; - bool RunUntilFail; - int NumberOfRunsLeft; - bool RunAgain; + bool RunUntilFail = false; // default to run the test once + int NumberOfRunsLeft = 1; // default to 1 run of the test + bool RunAgain = false; // default to not having to run again size_t TotalNumberOfTests; }; |