diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-22 15:38:05 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-27 13:45:45 (GMT) |
commit | cdfc4e31953274be9b745614b4b7620d365a7b5e (patch) | |
tree | d730ed1a5258286efbd83ac84e4a24f075bfa2aa /Source/cmSetPropertyCommand.cxx | |
parent | 808b17b1206dd70c7fbd676e8c24181cde537954 (diff) | |
download | CMake-cdfc4e31953274be9b745614b4b7620d365a7b5e.zip CMake-cdfc4e31953274be9b745614b4b7620d365a7b5e.tar.gz CMake-cdfc4e31953274be9b745614b4b7620d365a7b5e.tar.bz2 |
clang-tidy: fix `readability-qualified-auto` warnings
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)) { |