clang-tidy: fix performance-unnecessary-copy-initialization lints

This commit is contained in:
Ben Boeckel
2022-05-17 14:21:42 -04:00
committed by Brad King
parent 6ff03d463f
commit aa3649eb04
10 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -617,7 +617,7 @@ void cmCursesMainForm::FillCacheManagerFromUI()
cmValue existingValue =
this->CMakeInstance->GetState()->GetCacheEntryValue(cacheKey);
if (existingValue) {
std::string oldValue = *existingValue;
std::string const& oldValue = *existingValue;
std::string newValue = entry.Entry->GetValue();
std::string fixedOldValue;
std::string fixedNewValue;