Ninja: Replace ternary with if()
On principle of segregating the interface.
This commit is contained in:
parent
563ac22a16
commit
e80314d7a8
|
@ -132,9 +132,10 @@ std::string cmLocalNinjaGenerator::ConvertToIncludeReference(
|
||||||
std::string const& path, cmOutputConverter::OutputFormat format,
|
std::string const& path, cmOutputConverter::OutputFormat format,
|
||||||
bool forceFullPaths)
|
bool forceFullPaths)
|
||||||
{
|
{
|
||||||
return this->Convert(path, forceFullPaths ? cmOutputConverter::FULL
|
if (forceFullPaths) {
|
||||||
: cmOutputConverter::HOME_OUTPUT,
|
return this->Convert(path, cmOutputConverter::FULL, format);
|
||||||
format);
|
}
|
||||||
|
return this->Convert(path, cmOutputConverter::HOME_OUTPUT, format);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Private methods.
|
// Private methods.
|
||||||
|
|
Loading…
Reference in New Issue