From eaf5b7a776e24af55f6f7f254171c3e2d2932d9b Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 12 Nov 2013 08:42:51 -0500 Subject: [PATCH] cmGlobalGenerator: Do not propagate const through GetCMakeInstance Combine the const and non-const GetCMakeInstance to a const one and return a pointer to non-const cmake from it. --- Source/cmGlobalGenerator.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h index 8a753b755..6577d081a 100644 --- a/Source/cmGlobalGenerator.h +++ b/Source/cmGlobalGenerator.h @@ -139,8 +139,7 @@ public: void SetCMakeInstance(cmake *cm); ///! Get the CMake instance - cmake *GetCMakeInstance() { return this->CMakeInstance; } - const cmake *GetCMakeInstance() const { return this->CMakeInstance; } + cmake *GetCMakeInstance() const { return this->CMakeInstance; } void SetConfiguredFilesPath(cmGlobalGenerator* gen); const std::vector& GetLocalGenerators() const {