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/cmCPackIFWInstaller.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/cmCPackIFWInstaller.cxx')
-rw-r--r-- | Source/CPack/IFW/cmCPackIFWInstaller.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/CPack/IFW/cmCPackIFWInstaller.cxx b/Source/CPack/IFW/cmCPackIFWInstaller.cxx index e5c19bb..422f5d5 100644 --- a/Source/CPack/IFW/cmCPackIFWInstaller.cxx +++ b/Source/CPack/IFW/cmCPackIFWInstaller.cxx @@ -406,9 +406,8 @@ void cmCPackIFWInstaller::GenerateInstallerFile() // Remote repositories if (!this->RemoteRepositories.empty()) { xout.StartElement("RemoteRepositories"); - for (RepositoriesVector::iterator rit = this->RemoteRepositories.begin(); - rit != this->RemoteRepositories.end(); ++rit) { - (*rit)->WriteRepositoryConfig(xout); + for (cmCPackIFWRepository* r : this->RemoteRepositories) { + r->WriteRepositoryConfig(xout); } xout.EndElement(); } @@ -492,9 +491,8 @@ void cmCPackIFWInstaller::GeneratePackageFiles() } // Generate packages meta information - for (PackagesMap::iterator pit = this->Packages.begin(); - pit != this->Packages.end(); ++pit) { - cmCPackIFWPackage* package = pit->second; + for (auto& p : this->Packages) { + cmCPackIFWPackage* package = p.second; package->GeneratePackageFile(); } } |