Use two-iterator std::set::insert where appropriate.

This commit is contained in:
Stephen Kelly
2014-11-25 16:33:00 +01:00
parent 238dd2fbab
commit 6162c9194b
18 changed files with 41 additions and 168 deletions
+2 -7
View File
@@ -50,13 +50,8 @@ void cmCommandArgument::FollowsGroup(const cmCommandArgumentGroup* group)
if (group!=0)
{
this->ArgumentsBeforeEmpty = false;
for(std::vector<cmCommandArgument*>::const_iterator
argIt= group->ContainedArguments.begin();
argIt != group->ContainedArguments.end();
++argIt)
{
this->ArgumentsBefore.insert(*argIt);
}
this->ArgumentsBefore.insert(group->ContainedArguments.begin(),
group->ContainedArguments.end());
}
}