소스 검색

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;
 }