cmCacheManager: Replace loop with algorithm.

This commit is contained in:
Stephen Kelly 2015-02-09 19:50:09 +01:00
parent 60c3bb73e3
commit 76207b0861
1 changed files with 1 additions and 5 deletions

View File

@ -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,