Remove some needless GetMakefile() calls.

This commit is contained in:
Stephen Kelly 2015-10-07 19:42:13 +02:00
parent a367416cec
commit 223d0efe55
3 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ cmCustomCommandGenerator
}
else
{
cmOutputConverter converter(this->LG->GetMakefile()->GetStateSnapshot());
cmOutputConverter converter(this->LG->GetStateSnapshot());
cmd += converter.EscapeForShell(arg, this->MakeVars);
}
}

View File

@ -139,7 +139,7 @@ void cmGeneratorExpressionEvaluationFile::Generate(cmLocalGenerator *lg)
{
std::ostringstream e;
e << "Evaluation file \"" << this->Input << "\" cannot be read.";
lg->GetMakefile()->IssueMessage(cmake::FATAL_ERROR, e.str());
lg->IssueMessage(cmake::FATAL_ERROR, e.str());
return;
}

View File

@ -495,7 +495,7 @@ cmGlobalUnixMakefileGenerator3
// The directory-level rule should depend on the directory-level
// rules of the subdirectories.
std::vector<cmState::Snapshot> children
= lg->GetMakefile()->GetStateSnapshot().GetChildren();
= lg->GetStateSnapshot().GetChildren();
for(std::vector<cmState::Snapshot>::const_iterator
ci = children.begin(); ci != children.end(); ++ci)
{