Răsfoiți Sursa

BUG: The copy constructor should copy the escape settings.

Brad King 19 ani în urmă
părinte
comite
4babd52d8d
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      Source/cmCustomCommand.cxx

+ 3 - 3
Source/cmCustomCommand.cxx

@@ -30,10 +30,10 @@ cmCustomCommand::cmCustomCommand(const cmCustomCommand& r):
   Depends(r.Depends),
   CommandLines(r.CommandLines),
   Comment(r.Comment),
-  WorkingDirectory(r.WorkingDirectory)
+  WorkingDirectory(r.WorkingDirectory),
+  EscapeOldStyle(r.EscapeOldStyle),
+  EscapeAllowMakeVars(r.EscapeAllowMakeVars)
 {
-  this->EscapeOldStyle = true;
-  this->EscapeAllowMakeVars = false;
   this->Used = false;
 }