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:
parent
d3f7fa22ed
commit
eaf5b7a776
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue