summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-02-18 21:45:01 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-18 23:59:19 (GMT)
commit9c225767873ce64a745e865c6f1c3372a8ab45d9 (patch)
tree535267045c5af7abb384d0ba2375bb54d769fa26 /Source/cmGlobalGenerator.cxx
parentee5bc006ebee898729b81237719106704a2bb38a (diff)
downloadCMake-9c225767873ce64a745e865c6f1c3372a8ab45d9.zip
CMake-9c225767873ce64a745e865c6f1c3372a8ab45d9.tar.gz
CMake-9c225767873ce64a745e865c6f1c3372a8ab45d9.tar.bz2
cmGlobalGenerator: Replace set::insert algorithm with cmRemoveDuplicates.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 1de4a59..c976c69 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -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();