Convert raw loops to set member insert.
This commit is contained in:
parent
aac44e71e6
commit
92a37f9279
|
@ -98,12 +98,8 @@ const char *cmCompiledGeneratorExpression::Evaluate(
|
||||||
{
|
{
|
||||||
this->Output += (*it)->Evaluate(&context, dagChecker);
|
this->Output += (*it)->Evaluate(&context, dagChecker);
|
||||||
|
|
||||||
for(std::set<std::string>::const_iterator
|
this->SeenTargetProperties.insert(context.SeenTargetProperties.begin(),
|
||||||
p = context.SeenTargetProperties.begin();
|
context.SeenTargetProperties.end());
|
||||||
p != context.SeenTargetProperties.end(); ++p)
|
|
||||||
{
|
|
||||||
this->SeenTargetProperties.insert(*p);
|
|
||||||
}
|
|
||||||
if (context.HadError)
|
if (context.HadError)
|
||||||
{
|
{
|
||||||
this->Output = "";
|
this->Output = "";
|
||||||
|
|
|
@ -110,10 +110,7 @@ bool cmLoadCacheCommand::ReadWithPrefix(std::vector<std::string> const& args)
|
||||||
|
|
||||||
// Prepare the table of variables to read.
|
// Prepare the table of variables to read.
|
||||||
this->Prefix = args[2];
|
this->Prefix = args[2];
|
||||||
for(unsigned int i=3; i < args.size(); ++i)
|
this->VariablesToRead.insert(args.begin() + 3, args.end());
|
||||||
{
|
|
||||||
this->VariablesToRead.insert(args[i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Read the cache file.
|
// Read the cache file.
|
||||||
cmsys::ifstream fin(cacheFile.c_str());
|
cmsys::ifstream fin(cacheFile.c_str());
|
||||||
|
|
Loading…
Reference in New Issue