Replace while loop with member insert.

This commit is contained in:
Stephen Kelly 2015-01-25 15:36:59 +01:00
parent 74c4d9d27a
commit 63f584b618
2 changed files with 2 additions and 16 deletions

View File

@ -40,14 +40,7 @@ bool cmSetTargetPropertiesCommand
this->SetError("called with incorrect number of arguments."); this->SetError("called with incorrect number of arguments.");
return false; return false;
} }
while (j != args.end()) propertyPairs.insert(propertyPairs.end(), j, args.end());
{
propertyPairs.push_back(*j);
++j;
propertyPairs.push_back(*j);
++j;
}
// break out of the loop because j is already == end
break; break;
} }
else if (doingFiles) else if (doingFiles)

View File

@ -41,14 +41,7 @@ bool cmSetTestsPropertiesCommand
this->SetError("called with incorrect number of arguments."); this->SetError("called with incorrect number of arguments.");
return false; return false;
} }
while (j != args.end()) propertyPairs.insert(propertyPairs.end(), j, args.end());
{
propertyPairs.push_back(*j);
++j;
propertyPairs.push_back(*j);
++j;
}
// break out of the loop because j is already == end
break; break;
} }
else if (doingFiles) else if (doingFiles)