diff options
author | Brad King <brad.king@kitware.com> | 2013-11-12 13:42:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-11-12 13:43:33 (GMT) |
commit | eaf5b7a776e24af55f6f7f254171c3e2d2932d9b (patch) | |
tree | b07f54fcfd135f37f342cb71882370f6dc060d77 /Source/cmGlobalGenerator.h | |
parent | d3f7fa22ed8150eb030255adc4470578f1cc71e3 (diff) | |
download | CMake-eaf5b7a776e24af55f6f7f254171c3e2d2932d9b.zip CMake-eaf5b7a776e24af55f6f7f254171c3e2d2932d9b.tar.gz CMake-eaf5b7a776e24af55f6f7f254171c3e2d2932d9b.tar.bz2 |
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.
Diffstat (limited to 'Source/cmGlobalGenerator.h')
-rw-r--r-- | Source/cmGlobalGenerator.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h index 8a753b7..6577d08 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<cmLocalGenerator *>& GetLocalGenerators() const { |