diff options
author | Regina Pfeifer <regina@mailbox.org> | 2018-11-19 17:10:40 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-11-20 15:36:08 (GMT) |
commit | 5731ec30f0596fefede4321e9883043aa7db60ba (patch) | |
tree | a9eb4745aac533e596391de8f58a9a7136f0a9f7 /Source/QtDialog | |
parent | 1dc85a6652bc8255ff7a9ef39028a7df45e3007b (diff) | |
download | CMake-5731ec30f0596fefede4321e9883043aa7db60ba.zip CMake-5731ec30f0596fefede4321e9883043aa7db60ba.tar.gz CMake-5731ec30f0596fefede4321e9883043aa7db60ba.tar.bz2 |
clang-tidy: fix warnings from version 7
Fix some warnings that are new since clang-tidy version 4, and update
`.clang-tidy` to suppress the rest.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r-- | Source/QtDialog/AddCacheEntry.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/QtDialog/AddCacheEntry.cxx b/Source/QtDialog/AddCacheEntry.cxx index 6284ac9..70610d7 100644 --- a/Source/QtDialog/AddCacheEntry.cxx +++ b/Source/QtDialog/AddCacheEntry.cxx @@ -21,8 +21,8 @@ AddCacheEntry::AddCacheEntry(QWidget* p, const QStringList& varNames, , VarTypes(varTypes) { this->setupUi(this); - for (int i = 0; i < NumTypes; i++) { - this->Type->addItem(TypeStrings[i]); + for (auto const& elem : TypeStrings) { + this->Type->addItem(elem); } QWidget* cb = new QCheckBox(); QWidget* path = new QCMakePathEditor(); |