summaryrefslogtreecommitdiff
path: root/Source/cmSetPropertyCommand.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2021-01-22 10:38:05 -0500
committerBen Boeckel <ben.boeckel@kitware.com>2021-01-27 08:45:45 -0500
commitcdfc4e31953274be9b745614b4b7620d365a7b5e (patch)
treed730ed1a5258286efbd83ac84e4a24f075bfa2aa /Source/cmSetPropertyCommand.cxx
parent808b17b1206dd70c7fbd676e8c24181cde537954 (diff)
downloadcmake-cdfc4e31953274be9b745614b4b7620d365a7b5e.tar.gz
clang-tidy: fix `readability-qualified-auto` warnings
Diffstat (limited to 'Source/cmSetPropertyCommand.cxx')
-rw-r--r--Source/cmSetPropertyCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSetPropertyCommand.cxx b/Source/cmSetPropertyCommand.cxx
index 1a3aab8f83..c8990537ba 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)) {