cmake: Constify cmake::GetRegisteredGenerators

This commit is contained in:
Brad King committed 2016-08-16 13:40:06 -04:00
1 parent e240a7c017
commit 1d408dc10f
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -811,7 +811,8 @@ void cmake::AddDefaultExtraGenerators()
#endif
}
void cmake::GetRegisteredGenerators(std::vector<GeneratorInfo>& generators)
void cmake::GetRegisteredGenerators(
std::vector<GeneratorInfo>& generators) const
{
for (RegisteredGeneratorsVector::const_iterator i = this->Generators.begin(),
e = this->Generators.end();
+1 -1
View File
@@ -187,7 +187,7 @@ public:
void SetGlobalGenerator(cmGlobalGenerator*);
///! Get the names of the current registered generators
void GetRegisteredGenerators(std::vector<GeneratorInfo>& generators);
void GetRegisteredGenerators(std::vector<GeneratorInfo>& generators) const;
///! Set the name of the selected generator-specific platform.
void SetGeneratorPlatform(std::string const& ts)