summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-02-09 18:50:09 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-20 20:26:18 (GMT)
commit76207b0861478318115d65c2e983f4d88c937724 (patch)
tree77ad8608320a8839756570865561c329c6c207d3 /Source/cmCacheManager.cxx
parent60c3bb73e39f7b19a17c989a0f9bf70bbfe73683 (diff)
downloadCMake-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.cxx6
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,