diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-05-17 18:21:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-05-24 13:09:44 (GMT) |
commit | aa3649eb0488fe9ea82c330f2c0c606bbb9d32f4 (patch) | |
tree | 0709bde281596e328aa27adb41380bbd1cd046a9 /Source/QtDialog | |
parent | 6ff03d463f40176389943100690cf1ca8593d739 (diff) | |
download | CMake-aa3649eb0488fe9ea82c330f2c0c606bbb9d32f4.zip CMake-aa3649eb0488fe9ea82c330f2c0c606bbb9d32f4.tar.gz CMake-aa3649eb0488fe9ea82c330f2c0c606bbb9d32f4.tar.bz2 |
clang-tidy: fix `performance-unnecessary-copy-initialization` lints
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/QCMakeCacheView.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx index 964d967..f79d6fc 100644 --- a/Source/QtDialog/QCMakeCacheView.cxx +++ b/Source/QtDialog/QCMakeCacheView.cxx @@ -303,7 +303,7 @@ void QCMakeCacheModel::setProperties(const QCMakePropertyList& props) int num = props2.size(); for (int i = 0; i < num; i++) { - QCMakeProperty prop = props2[i]; + QCMakeProperty const& prop = props2[i]; QList<QStandardItem*> items; items.append(new QStandardItem()); items.append(new QStandardItem()); @@ -325,7 +325,7 @@ void QCMakeCacheModel::setProperties(const QCMakePropertyList& props) int num = props2.size(); for (int i = 0; i < num; i++) { - QCMakeProperty prop = props2[i]; + QCMakeProperty const& prop = props2[i]; QList<QStandardItem*> items; items.append(new QStandardItem()); items.append(new QStandardItem()); |