diff options
author | Brad King <brad.king@kitware.com> | 2018-10-17 17:24:06 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-10-17 17:24:27 (GMT) |
commit | cd4ed3ecb2ecfe3e2043ae0338a02323a508e0dd (patch) | |
tree | adceb1f597138a79a237de23c91d266622d4218b | |
parent | 004d9ebbd34fcd670b564c7234888016773b8404 (diff) | |
parent | d543eb2260fff6c49ab6e5066d376c502e91bf9f (diff) | |
download | CMake-cd4ed3ecb2ecfe3e2043ae0338a02323a508e0dd.zip CMake-cd4ed3ecb2ecfe3e2043ae0338a02323a508e0dd.tar.gz CMake-cd4ed3ecb2ecfe3e2043ae0338a02323a508e0dd.tar.bz2 |
Merge topic 'ctor-remove'
d543eb2260 cmCustomCommand: remove the default constructor
Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Brad King <brad.king@kitware.com>
Merge-request: !2486
-rw-r--r-- | Source/cmCustomCommand.cxx | 10 | ||||
-rw-r--r-- | Source/cmCustomCommand.h | 13 |
2 files changed, 5 insertions, 18 deletions
diff --git a/Source/cmCustomCommand.cxx b/Source/cmCustomCommand.cxx index cfd260c..e87eb1e 100644 --- a/Source/cmCustomCommand.cxx +++ b/Source/cmCustomCommand.cxx @@ -4,16 +4,6 @@ #include "cmMakefile.h" -cmCustomCommand::cmCustomCommand() - : Backtrace() -{ - this->HaveComment = false; - this->EscapeOldStyle = true; - this->EscapeAllowMakeVars = false; - this->UsesTerminal = false; - this->CommandExpandLists = false; -} - cmCustomCommand::cmCustomCommand(cmMakefile const* mf, const std::vector<std::string>& outputs, const std::vector<std::string>& byproducts, diff --git a/Source/cmCustomCommand.h b/Source/cmCustomCommand.h index 9e82f25..d82160b 100644 --- a/Source/cmCustomCommand.h +++ b/Source/cmCustomCommand.h @@ -22,9 +22,6 @@ class cmMakefile; class cmCustomCommand { public: - /** Default and copy constructors for STL containers. */ - cmCustomCommand(); - /** Main constructor specifies all information for the command. */ cmCustomCommand(cmMakefile const* mf, const std::vector<std::string>& outputs, @@ -103,11 +100,11 @@ private: std::string Comment; std::string WorkingDirectory; std::string Depfile; - bool HaveComment; - bool EscapeAllowMakeVars; - bool EscapeOldStyle; - bool UsesTerminal; - bool CommandExpandLists; + bool HaveComment = false; + bool EscapeAllowMakeVars = false; + bool EscapeOldStyle = true; + bool UsesTerminal = false; + bool CommandExpandLists = false; }; #endif |