From 1d408dc10f492d060b8b9546c3ed3521d7051fd8 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 16 Aug 2016 13:36:54 -0400 Subject: [PATCH] cmake: Constify cmake::GetRegisteredGenerators --- Source/cmake.cxx | 3 ++- Source/cmake.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index b11f4f6967..a265ead66d 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -811,7 +811,8 @@ void cmake::AddDefaultExtraGenerators() #endif } -void cmake::GetRegisteredGenerators(std::vector& generators) +void cmake::GetRegisteredGenerators( + std::vector& generators) const { for (RegisteredGeneratorsVector::const_iterator i = this->Generators.begin(), e = this->Generators.end(); diff --git a/Source/cmake.h b/Source/cmake.h index 304a15d67c..5b7c54ac70 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -187,7 +187,7 @@ public: void SetGlobalGenerator(cmGlobalGenerator*); ///! Get the names of the current registered generators - void GetRegisteredGenerators(std::vector& generators); + void GetRegisteredGenerators(std::vector& generators) const; ///! Set the name of the selected generator-specific platform. void SetGeneratorPlatform(std::string const& ts)