diff options
author | Regina Pfeifer <regina@mailbox.org> | 2018-11-21 22:17:54 (GMT) |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2018-12-15 09:52:37 (GMT) |
commit | b2aa3aedeab09ad7b2c95353d2d3c3d867bcec53 (patch) | |
tree | 44678a6866dac777b571e84aed52d62d286654cf /Source/CTest | |
parent | 32cb564bea57af007d03fa31d80a0177057fc901 (diff) | |
download | CMake-b2aa3aedeab09ad7b2c95353d2d3c3d867bcec53.zip CMake-b2aa3aedeab09ad7b2c95353d2d3c3d867bcec53.tar.gz CMake-b2aa3aedeab09ad7b2c95353d2d3c3d867bcec53.tar.bz2 |
clang-tidy: Use default member initialization
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmCTestBuildHandler.cxx | 7 | ||||
-rw-r--r-- | Source/CTest/cmCTestGIT.cxx | 10 |
2 files changed, 5 insertions, 12 deletions
diff --git a/Source/CTest/cmCTestBuildHandler.cxx b/Source/CTest/cmCTestBuildHandler.cxx index a8309d9..539a0ce 100644 --- a/Source/CTest/cmCTestBuildHandler.cxx +++ b/Source/CTest/cmCTestBuildHandler.cxx @@ -503,10 +503,7 @@ public: : FTC(ftc) { } - FragmentCompare() - : FTC(nullptr) - { - } + FragmentCompare() {} bool operator()(std::string const& l, std::string const& r) const { // Order files by modification time. Use lexicographic order @@ -520,7 +517,7 @@ public: } private: - cmFileTimeComparison* FTC; + cmFileTimeComparison* FTC = nullptr; }; void cmCTestBuildHandler::GenerateXMLLaunched(cmXMLWriter& xml) diff --git a/Source/CTest/cmCTestGIT.cxx b/Source/CTest/cmCTestGIT.cxx index 471ab88..4ede3d4 100644 --- a/Source/CTest/cmCTestGIT.cxx +++ b/Source/CTest/cmCTestGIT.cxx @@ -475,13 +475,9 @@ private: { std::string Name; std::string EMail; - unsigned long Time; - long TimeZone; - Person() - : Time(0) - , TimeZone(0) - { - } + unsigned long Time = 0; + long TimeZone = 0; + Person() {} }; void ParsePerson(const char* str, Person& person) |