summaryrefslogtreecommitdiffstats
path: root/Source/cmProjectCommand.cxx
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2019-07-06 01:21:31 (GMT)
committerBrad King <brad.king@kitware.com>2019-07-15 12:17:36 (GMT)
commit45e85dd2b2830601b28da26a0ed36db23c82204d (patch)
treea56e74e850c6c1f56c2c0a15a702505694580a66 /Source/cmProjectCommand.cxx
parent90f91e4d217e64c5a68c8069500b83329eaee6b9 (diff)
downloadCMake-45e85dd2b2830601b28da26a0ed36db23c82204d.zip
CMake-45e85dd2b2830601b28da26a0ed36db23c82204d.tar.gz
CMake-45e85dd2b2830601b28da26a0ed36db23c82204d.tar.bz2
Refactor: Add some `const` to vars
Diffstat (limited to 'Source/cmProjectCommand.cxx')
-rw-r--r--Source/cmProjectCommand.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmProjectCommand.cxx b/Source/cmProjectCommand.cxx
index c08ad0f..b2bc0c4 100644
--- a/Source/cmProjectCommand.cxx
+++ b/Source/cmProjectCommand.cxx
@@ -199,7 +199,7 @@ bool cmProjectCommand::InitialPass(std::vector<std::string> const& args,
languages.emplace_back("NONE");
}
- cmPolicies::PolicyStatus cmp0048 =
+ cmPolicies::PolicyStatus const cmp0048 =
this->Makefile->GetPolicyStatus(cmPolicies::CMP0048);
if (haveVersion) {
// Set project VERSION variables to given values
@@ -280,7 +280,7 @@ bool cmProjectCommand::InitialPass(std::vector<std::string> const& args,
}
std::string vw;
for (std::string const& i : vv) {
- const char* v = this->Makefile->GetDefinition(i);
+ const char* const v = this->Makefile->GetDefinition(i);
if (v && *v) {
if (cmp0048 == cmPolicies::WARN) {
if (!injectedProjectCommand) {
@@ -330,7 +330,7 @@ bool cmProjectCommand::InitialPass(std::vector<std::string> const& args,
bool cmProjectCommand::IncludeByVariable(const std::string& variable)
{
- const char* include = this->Makefile->GetDefinition(variable);
+ const char* const include = this->Makefile->GetDefinition(variable);
if (!include) {
return true;
}