瀏覽代碼

BUG: The copy constructor should copy the escape settings.

Brad King 19 年之前
父節點
當前提交
4babd52d8d
共有 1 個文件被更改,包括 3 次插入3 次删除
  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;
 }