Przeglądaj źródła

stringapi: Use strings for output names in AddCustomCommandToOutput

Ben Boeckel 11 lat temu
rodzic
commit
30bc251b65
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      Source/cmMakefile.cxx
  2. 1 1
      Source/cmMakefile.h

+ 1 - 1
Source/cmMakefile.cxx

@@ -1102,7 +1102,7 @@ cmMakefile::UpdateOutputToSourceMap(std::string const& output,
 
 //----------------------------------------------------------------------------
 cmSourceFile*
-cmMakefile::AddCustomCommandToOutput(const char* output,
+cmMakefile::AddCustomCommandToOutput(const std::string& output,
                                      const std::vector<std::string>& depends,
                                      const char* main_dependency,
                                      const cmCustomCommandLines& commandLines,

+ 1 - 1
Source/cmMakefile.h

@@ -183,7 +183,7 @@ public:
     bool replace = false,
     bool escapeOldStyle = true);
   cmSourceFile* AddCustomCommandToOutput(
-    const char* output,
+    const std::string& output,
     const std::vector<std::string>& depends,
     const char* main_dependency,
     const cmCustomCommandLines& commandLines,