diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-01-22 23:32:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-25 11:45:00 (GMT) |
commit | 094f01d0f019147afbdfc1c18ad1a6ca232eb3b8 (patch) | |
tree | c21fa56b9092c742d7dc371d523b5a80b2330f03 /Source/cmIfCommand.h | |
parent | 55671b41d2d182ce8d3201012ec55badd7116615 (diff) | |
download | CMake-094f01d0f019147afbdfc1c18ad1a6ca232eb3b8.zip CMake-094f01d0f019147afbdfc1c18ad1a6ca232eb3b8.tar.gz CMake-094f01d0f019147afbdfc1c18ad1a6ca232eb3b8.tar.bz2 |
cleanup: Prefer compiler provided special member functions
Diffstat (limited to 'Source/cmIfCommand.h')
-rw-r--r-- | Source/cmIfCommand.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Source/cmIfCommand.h b/Source/cmIfCommand.h index c984976..d34ed02 100644 --- a/Source/cmIfCommand.h +++ b/Source/cmIfCommand.h @@ -19,13 +19,6 @@ class cmMakefile; class cmIfFunctionBlocker : public cmFunctionBlocker { public: - cmIfFunctionBlocker() - { - this->HasRun = false; - this->ElseSeen = false; - this->ScopeDepth = 0; - } - ~cmIfFunctionBlocker() override = default; bool IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile& mf, cmExecutionStatus&) override; bool ShouldRemove(const cmListFileFunction& lff, cmMakefile& mf) override; @@ -33,9 +26,9 @@ public: std::vector<cmListFileArgument> Args; std::vector<cmListFileFunction> Functions; bool IsBlocking; - bool HasRun; - bool ElseSeen; - unsigned int ScopeDepth; + bool HasRun = false; + bool ElseSeen = false; + unsigned int ScopeDepth = 0; }; /// Starts an if block |