mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
clang-tidy: fix performance-unnecessary-copy-initialization lints
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user