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/QCMake.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/QCMake.cxx')
-rw-r--r-- | Source/QtDialog/QCMake.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/QtDialog/QCMake.cxx b/Source/QtDialog/QCMake.cxx index abeff97..28820a6 100644 --- a/Source/QtDialog/QCMake.cxx +++ b/Source/QtDialog/QCMake.cxx @@ -219,14 +219,14 @@ void QCMake::setProperties(const QCMakePropertyList& newProps) } // remove some properites - foreach (QString s, toremove) { + foreach (QString const& s, toremove) { this->CMakeInstance->UnwatchUnusedCli(s.toLocal8Bit().data()); state->RemoveCacheEntry(s.toLocal8Bit().data()); } // add some new properites - foreach (QCMakeProperty s, props) { + foreach (QCMakeProperty const& s, props) { this->CMakeInstance->WatchUnusedCli(s.Key.toLocal8Bit().data()); if (s.Type == QCMakeProperty::BOOL) { |