summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-05-17 18:21:42 (GMT)
committerBrad King <brad.king@kitware.com>2022-05-24 13:09:44 (GMT)
commitaa3649eb0488fe9ea82c330f2c0c606bbb9d32f4 (patch)
tree0709bde281596e328aa27adb41380bbd1cd046a9 /Source/CursesDialog
parent6ff03d463f40176389943100690cf1ca8593d739 (diff)
downloadCMake-aa3649eb0488fe9ea82c330f2c0c606bbb9d32f4.zip
CMake-aa3649eb0488fe9ea82c330f2c0c606bbb9d32f4.tar.gz
CMake-aa3649eb0488fe9ea82c330f2c0c606bbb9d32f4.tar.bz2
clang-tidy: fix `performance-unnecessary-copy-initialization` lints
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/cmCursesMainForm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx
index 5b1a433..5a8e40f 100644
--- a/Source/CursesDialog/cmCursesMainForm.cxx
+++ b/Source/CursesDialog/cmCursesMainForm.cxx
@@ -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;