mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-05 05:39:57 -05:00
Use two-iterator std::set::insert where appropriate.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user