diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-02-09 18:50:09 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-20 20:26:18 (GMT) |
commit | 76207b0861478318115d65c2e983f4d88c937724 (patch) | |
tree | 77ad8608320a8839756570865561c329c6c207d3 /Source/cmCacheManager.cxx | |
parent | 60c3bb73e39f7b19a17c989a0f9bf70bbfe73683 (diff) | |
download | CMake-76207b0861478318115d65c2e983f4d88c937724.zip CMake-76207b0861478318115d65c2e983f4d88c937724.tar.gz CMake-76207b0861478318115d65c2e983f4d88c937724.tar.bz2 |
cmCacheManager: Replace loop with algorithm.
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r-- | Source/cmCacheManager.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index 45e92ce..0c77891 100644 --- a/Source/cmCacheManager.cxx +++ b/Source/cmCacheManager.cxx @@ -186,11 +186,7 @@ void cmCacheManager::CleanCMakeFiles(const std::string& path) cmsys::Glob globIt; globIt.FindFiles(glob); std::vector<std::string> files = globIt.GetFiles(); - for(std::vector<std::string>::iterator i = files.begin(); - i != files.end(); ++i) - { - cmSystemTools::RemoveFile(*i); - } + std::for_each(files.begin(), files.end(), cmSystemTools::RemoveFile); } bool cmCacheManager::LoadCache(const std::string& path, |