Parcourir la source

cmMakefile: Consify custom command API.

Stephen Kelly il y a 11 ans
Parent
commit
c6c0bd9d2f
4 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 1 1
      Source/cmCustomCommand.cxx
  2. 1 1
      Source/cmCustomCommand.h
  3. 1 1
      Source/cmMakefile.cxx
  4. 1 1
      Source/cmMakefile.h

+ 1 - 1
Source/cmCustomCommand.cxx

@@ -64,7 +64,7 @@ cmCustomCommand& cmCustomCommand::operator=(cmCustomCommand const& r)
 }
 
 //----------------------------------------------------------------------------
-cmCustomCommand::cmCustomCommand(cmMakefile* mf,
+cmCustomCommand::cmCustomCommand(cmMakefile const* mf,
                                  const std::vector<std::string>& outputs,
                                  const std::vector<std::string>& depends,
                                  const cmCustomCommandLines& commandLines,

+ 1 - 1
Source/cmCustomCommand.h

@@ -30,7 +30,7 @@ public:
   cmCustomCommand& operator=(cmCustomCommand const& r);
 
   /** Main constructor specifies all information for the command.  */
-  cmCustomCommand(cmMakefile* mf,
+  cmCustomCommand(cmMakefile const* mf,
                   const std::vector<std::string>& outputs,
                   const std::vector<std::string>& depends,
                   const cmCustomCommandLines& commandLines,

+ 1 - 1
Source/cmMakefile.cxx

@@ -884,7 +884,7 @@ cmMakefile::AddCustomCommandToTarget(const char* target,
                                      cmTarget::CustomCommandType type,
                                      const char* comment,
                                      const char* workingDir,
-                                     bool escapeOldStyle)
+                                     bool escapeOldStyle) const
 {
   // Find the target to which to add the custom command.
   cmTargets::iterator ti = this->Targets.find(target);

+ 1 - 1
Source/cmMakefile.h

@@ -173,7 +173,7 @@ public:
                                 const cmCustomCommandLines& commandLines,
                                 cmTarget::CustomCommandType type,
                                 const char* comment, const char* workingDir,
-                                bool escapeOldStyle = true);
+                                bool escapeOldStyle = true) const;
   cmSourceFile* AddCustomCommandToOutput(
     const std::vector<std::string>& outputs,
     const std::vector<std::string>& depends,