diff options
author | Brad King <brad.king@kitware.com> | 2017-09-18 18:11:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-19 13:32:25 (GMT) |
commit | 706b37b7f597f449cc3d02bd50123c4e7277eadb (patch) | |
tree | bbb9c41b56c4205e8c28578f8b13ee6aa4ad0825 /Source/CursesDialog/cmCursesCacheEntryComposite.cxx | |
parent | 4547d9a83030f8ae7e636cef16a261c65e6feb40 (diff) | |
download | CMake-706b37b7f597f449cc3d02bd50123c4e7277eadb.zip CMake-706b37b7f597f449cc3d02bd50123c4e7277eadb.tar.gz CMake-706b37b7f597f449cc3d02bd50123c4e7277eadb.tar.bz2 |
Enable clang-tidy modernize-loop-convert lint
Fix remaining diagnostics by this lint and remove it from our list of
disabled lints.
Diffstat (limited to 'Source/CursesDialog/cmCursesCacheEntryComposite.cxx')
-rw-r--r-- | Source/CursesDialog/cmCursesCacheEntryComposite.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/CursesDialog/cmCursesCacheEntryComposite.cxx b/Source/CursesDialog/cmCursesCacheEntryComposite.cxx index 8596281..e7ed097 100644 --- a/Source/CursesDialog/cmCursesCacheEntryComposite.cxx +++ b/Source/CursesDialog/cmCursesCacheEntryComposite.cxx @@ -72,9 +72,8 @@ cmCursesCacheEntryComposite::cmCursesCacheEntryComposite( this->Entry = ow; std::vector<std::string> options; cmSystemTools::ExpandListArgument(stringsProp, options); - for (std::vector<std::string>::iterator si = options.begin(); - si != options.end(); ++si) { - ow->AddOption(*si); + for (auto const& opt : options) { + ow->AddOption(opt); } ow->SetOption(value); } else { |