diff options
author | Brad King <brad.king@kitware.com> | 2017-09-19 13:07:33 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-09-19 13:07:48 (GMT) |
commit | 4547d9a83030f8ae7e636cef16a261c65e6feb40 (patch) | |
tree | 3b695694b889d506c61d010102e3824e89e39581 /Source/CPack/IFW/cmCPackIFWRepository.cxx | |
parent | 7c28081c147e2eb6c7ad6dee0aada77219af7a6d (diff) | |
parent | f43baf69814176f52b2b229667c4d3e88154bdea (diff) | |
download | CMake-4547d9a83030f8ae7e636cef16a261c65e6feb40.zip CMake-4547d9a83030f8ae7e636cef16a261c65e6feb40.tar.gz CMake-4547d9a83030f8ae7e636cef16a261c65e6feb40.tar.bz2 |
Merge topic 'ranged-for'
f43baf69 Meta: modernize old-fashioned loops to range-based `for` (CPack).
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1274
Diffstat (limited to 'Source/CPack/IFW/cmCPackIFWRepository.cxx')
-rw-r--r-- | Source/CPack/IFW/cmCPackIFWRepository.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/CPack/IFW/cmCPackIFWRepository.cxx b/Source/CPack/IFW/cmCPackIFWRepository.cxx index b577b49..87e7089 100644 --- a/Source/CPack/IFW/cmCPackIFWRepository.cxx +++ b/Source/CPack/IFW/cmCPackIFWRepository.cxx @@ -279,9 +279,8 @@ void cmCPackIFWRepository::WriteRepositoryUpdates(cmXMLWriter& xout) { if (!this->RepositoryUpdate.empty()) { xout.StartElement("RepositoryUpdate"); - for (RepositoriesVector::iterator rit = this->RepositoryUpdate.begin(); - rit != this->RepositoryUpdate.end(); ++rit) { - (*rit)->WriteRepositoryUpdate(xout); + for (cmCPackIFWRepository* r : this->RepositoryUpdate) { + r->WriteRepositoryUpdate(xout); } xout.EndElement(); } |