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

View File

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