Ver código fonte

cmLocalGenerator: Constify target in API.

Stephen Kelly 10 anos atrás
pai
commit
f7738fd122
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      Source/cmLocalGenerator.cxx
  2. 1 1
      Source/cmLocalGenerator.h

+ 1 - 1
Source/cmLocalGenerator.cxx

@@ -1180,7 +1180,7 @@ void cmLocalGenerator::AddCompileOptions(
 
 //----------------------------------------------------------------------------
 void cmLocalGenerator::GetIncludeDirectories(std::vector<std::string>& dirs,
-                                             cmGeneratorTarget* target,
+                                             cmGeneratorTarget const* target,
                                              const std::string& lang,
                                              const std::string& config,
                                              bool stripImplicitInclDirs

+ 1 - 1
Source/cmLocalGenerator.h

@@ -171,7 +171,7 @@ public:
 
   /** Get the include flags for the current makefile and language.  */
   void GetIncludeDirectories(std::vector<std::string>& dirs,
-                             cmGeneratorTarget* target,
+                             cmGeneratorTarget const* target,
                              const std::string& lang = "C",
                              const std::string& config = "",
                              bool stripImplicitInclDirs = true) const;