cmGlobalGenerator: Replace set::insert algorithm with cmRemoveDuplicates.

This commit is contained in:
Stephen Kelly 2015-02-18 22:45:01 +01:00
parent ee5bc006eb
commit 9c22576787
1 changed files with 3 additions and 6 deletions

View File

@ -2937,14 +2937,11 @@ void cmGlobalGenerator::WriteSummary(cmTarget* target)
{
target->GetSourceFiles(sources, *ci);
}
std::set<cmSourceFile*> emitted;
std::vector<cmSourceFile*>::const_iterator sourcesEnd
= cmRemoveDuplicates(sources);
for(std::vector<cmSourceFile*>::const_iterator si = sources.begin();
si != sources.end(); ++si)
si != sourcesEnd; ++si)
{
if (!emitted.insert(*si).second)
{
continue;
}
Json::Value& lj_source = lj_sources.append(Json::objectValue);
cmSourceFile* sf = *si;
std::string const& sfp = sf->GetFullPath();