summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorCengizhan Pasaoglu <cengizhanpasaoglu@gmail.com>2020-10-17 23:00:29 (GMT)
committerCengizhan Pasaoglu <cengizhanpasaoglu@gmail.com>2020-10-19 21:04:04 (GMT)
commitbd705788f67741df88bf153825a5943b4b518818 (patch)
tree356596cc5ca5d3f2ad2de7954257903301143bd8 /Source/cmake.cxx
parentc05e561474c422d23b9f1d29ccb5ceea0037477b (diff)
downloadCMake-bd705788f67741df88bf153825a5943b4b518818.zip
CMake-bd705788f67741df88bf153825a5943b4b518818.tar.gz
CMake-bd705788f67741df88bf153825a5943b4b518818.tar.bz2
Constify some code as suggested by clang-tidy
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 720a567..80a6edc 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1938,7 +1938,7 @@ int cmake::ActualConfigure()
}
}
- auto& mf = this->GlobalGenerator->GetMakefiles()[0];
+ const auto& mf = this->GlobalGenerator->GetMakefiles()[0];
if (mf->IsOn("CTEST_USE_LAUNCHERS") &&
!this->State->GetGlobalProperty("RULE_LAUNCH_COMPILE")) {
cmSystemTools::Error(
@@ -2280,12 +2280,12 @@ cmProp cmake::GetCacheDefinition(const std::string& name) const
return this->State->GetInitializedCacheValue(name);
}
-void cmake::AddScriptingCommands()
+void cmake::AddScriptingCommands() const
{
GetScriptingCommands(this->GetState());
}
-void cmake::AddProjectCommands()
+void cmake::AddProjectCommands() const
{
GetProjectCommands(this->GetState());
}