Răsfoiți Sursa

cmCustomCommand: remove the default constructor

Unused; no longer mandated by STL
Vitaly Stakhovsky 7 ani în urmă
părinte
comite
d543eb2260
2 a modificat fișierele cu 5 adăugiri și 18 ștergeri
  1. 0 10
      Source/cmCustomCommand.cxx
  2. 5 8
      Source/cmCustomCommand.h

+ 0 - 10
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,

+ 5 - 8
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