Browse Source

Merge topic 'simplify-ccg-converter'

df1693bd cmCustomCommandGenerator: Simplify cmOutputConverter access

Acked-by: Kitware Robot <[email protected]>
Merge-request: !1738
Brad King 7 years ago
parent
commit
457bcbd4f9
1 changed files with 1 additions and 3 deletions
  1. 1 3
      Source/cmCustomCommandGenerator.cxx

+ 1 - 3
Source/cmCustomCommandGenerator.cxx

@@ -8,7 +8,6 @@
 #include "cmGeneratorTarget.h"
 #include "cmLocalGenerator.h"
 #include "cmMakefile.h"
-#include "cmOutputConverter.h"
 #include "cmStateTypes.h"
 #include "cmSystemTools.h"
 
@@ -167,8 +166,7 @@ void cmCustomCommandGenerator::AppendArguments(unsigned int c,
     if (this->OldStyle) {
       cmd += escapeForShellOldStyle(arg);
     } else {
-      cmOutputConverter converter(this->LG->GetStateSnapshot());
-      cmd += converter.EscapeForShell(arg, this->MakeVars);
+      cmd += this->LG->EscapeForShell(arg, this->MakeVars);
     }
   }
 }