cmGlobalGenerator: Don't use else after a return.

This commit is contained in:
Stephen Kelly 2015-05-27 21:40:39 +02:00
parent 52919ac8ac
commit 80b433b05e
1 changed files with 19 additions and 24 deletions

View File

@ -87,8 +87,7 @@ bool cmGlobalGenerator::SetGeneratorPlatform(std::string const& p,
{
return true;
}
else
{
std::ostringstream e;
e <<
"Generator\n"
@ -98,7 +97,6 @@ bool cmGlobalGenerator::SetGeneratorPlatform(std::string const& p,
"was specified.";
mf->IssueMessage(cmake::FATAL_ERROR, e.str());
return false;
}
}
bool cmGlobalGenerator::SetGeneratorToolset(std::string const& ts,
@ -108,8 +106,6 @@ bool cmGlobalGenerator::SetGeneratorToolset(std::string const& ts,
{
return true;
}
else
{
std::ostringstream e;
e <<
"Generator\n"
@ -119,7 +115,6 @@ bool cmGlobalGenerator::SetGeneratorToolset(std::string const& ts,
"was specified.";
mf->IssueMessage(cmake::FATAL_ERROR, e.str());
return false;
}
}
std::string cmGlobalGenerator::SelectMakeProgram(