mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
cmCacheManager: Replace loop with algorithm.
This commit is contained in:
parent
60c3bb73e3
commit
76207b0861
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user