diff options
Diffstat (limited to 'Source/cmSetPropertyCommand.cxx')
-rw-r--r-- | Source/cmSetPropertyCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSetPropertyCommand.cxx b/Source/cmSetPropertyCommand.cxx index 1a3aab8..c899053 100644 --- a/Source/cmSetPropertyCommand.cxx +++ b/Source/cmSetPropertyCommand.cxx @@ -223,7 +223,7 @@ void MakeSourceFilePathsAbsoluteIfNeeded( bool HandleAndValidateSourceFilePropertyGENERATED( cmSourceFile* sf, std::string const& propertyValue, PropertyOp op) { - auto& mf = *sf->GetLocation().GetMakefile(); + const auto& mf = *sf->GetLocation().GetMakefile(); auto policyStatus = mf.GetPolicyStatus(cmPolicies::CMP0118); const bool policyWARN = policyStatus == cmPolicies::WARN; @@ -589,7 +589,7 @@ bool HandleSourceMode(cmExecutionStatus& status, status, files_absolute, unique_files.begin(), unique_files.end(), source_file_paths_should_be_absolute); - for (const auto mf : directory_makefiles) { + for (auto* const mf : directory_makefiles) { for (std::string const& name : files_absolute) { // Get the source file. if (cmSourceFile* sf = mf->GetOrCreateSource(name)) { |