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;
|
cmsys::Glob globIt;
|
||||||
globIt.FindFiles(glob);
|
globIt.FindFiles(glob);
|
||||||
std::vector<std::string> files = globIt.GetFiles();
|
std::vector<std::string> files = globIt.GetFiles();
|
||||||
for(std::vector<std::string>::iterator i = files.begin();
|
std::for_each(files.begin(), files.end(), cmSystemTools::RemoveFile);
|
||||||
i != files.end(); ++i)
|
|
||||||
{
|
|
||||||
cmSystemTools::RemoveFile(*i);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cmCacheManager::LoadCache(const std::string& path,
|
bool cmCacheManager::LoadCache(const std::string& path,
|
||||||
|
|
Loading…
Reference in New Issue