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.
This commit is contained in:
Brad King 2013-11-12 08:42:51 -05:00
parent d3f7fa22ed
commit eaf5b7a776
1 changed files with 1 additions and 2 deletions

View File

@ -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 {