diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-02-09 19:50:09 +0100 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-20 21:26:18 +0100 |
commit | 76207b0861478318115d65c2e983f4d88c937724 (patch) | |
tree | 77ad8608320a8839756570865561c329c6c207d3 /Source/cmCacheManager.cxx | |
parent | 60c3bb73e39f7b19a17c989a0f9bf70bbfe73683 (diff) | |
download | cmake-76207b0861478318115d65c2e983f4d88c937724.tar.gz |
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 45e92cef9b..0c77891e79 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, |