Преглед изворни кода

cmLocalGenerator: Constify GetIncludeDirectories method.

Stephen Kelly пре 10 година
родитељ
комит
820986edff
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      Source/cmLocalGenerator.cxx
  2. 1 1
      Source/cmLocalGenerator.h

+ 1 - 1
Source/cmLocalGenerator.cxx

@@ -1341,7 +1341,7 @@ void cmLocalGenerator::GetIncludeDirectories(std::vector<std::string>& dirs,
                                              const std::string& lang,
                                              const std::string& config,
                                              bool stripImplicitInclDirs
-                                            )
+                                            ) const
 {
   // Need to decide whether to automatically include the source and
   // binary directories at the beginning of the include path.

+ 1 - 1
Source/cmLocalGenerator.h

@@ -183,7 +183,7 @@ public:
                              cmGeneratorTarget* target,
                              const std::string& lang = "C",
                              const std::string& config = "",
-                             bool stripImplicitInclDirs = true);
+                             bool stripImplicitInclDirs = true) const;
   void AddCompileOptions(std::string& flags, cmTarget* target,
                          const std::string& lang, const std::string& config);
   void AddCompileDefinitions(std::set<std::string>& defines,