diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-05-04 20:23:46 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-05-05 07:21:13 (GMT) |
commit | 726b3b6f756e8b486549271062c40d53f996e404 (patch) | |
tree | 728ee8b5fa542092939e07b064c54baf33122514 /Source/QtDialog/CMakeSetupDialog.cxx | |
parent | 377d4df2795ad501aa7a08cf5c2ac0ef1208c362 (diff) | |
download | CMake-726b3b6f756e8b486549271062c40d53f996e404.zip CMake-726b3b6f756e8b486549271062c40d53f996e404.tar.gz CMake-726b3b6f756e8b486549271062c40d53f996e404.tar.bz2 |
QtDialog: add reference in foreach
Diffstat (limited to 'Source/QtDialog/CMakeSetupDialog.cxx')
-rw-r--r-- | Source/QtDialog/CMakeSetupDialog.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index 111b28a..3541da4 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -990,10 +990,10 @@ void CMakeSetupDialog::removeSelectedCacheEntries() { QModelIndexList idxs = this->CacheValues->selectionModel()->selectedRows(); QList<QPersistentModelIndex> pidxs; - foreach (QModelIndex i, idxs) { + foreach (QModelIndex const& i, idxs) { pidxs.append(i); } - foreach (QPersistentModelIndex pi, pidxs) { + foreach (QPersistentModelIndex const& pi, pidxs) { this->CacheValues->model()->removeRow(pi.row(), pi.parent()); } } @@ -1152,7 +1152,7 @@ void CMakeSetupDialog::showUserChanges() QString command; QString cache; - foreach (QCMakeProperty prop, changes) { + foreach (QCMakeProperty const& prop, changes) { QString type; switch (prop.Type) { case QCMakeProperty::BOOL: |