mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 08:20:18 -06:00
Ninja: Replace ternary with if()
On principle of segregating the interface.
This commit is contained in:
@@ -132,9 +132,10 @@ std::string cmLocalNinjaGenerator::ConvertToIncludeReference(
|
||||
std::string const& path, cmOutputConverter::OutputFormat format,
|
||||
bool forceFullPaths)
|
||||
{
|
||||
return this->Convert(path, forceFullPaths ? cmOutputConverter::FULL
|
||||
: cmOutputConverter::HOME_OUTPUT,
|
||||
format);
|
||||
if (forceFullPaths) {
|
||||
return this->Convert(path, cmOutputConverter::FULL, format);
|
||||
}
|
||||
return this->Convert(path, cmOutputConverter::HOME_OUTPUT, format);
|
||||
}
|
||||
|
||||
// Private methods.
|
||||
|
||||
Reference in New Issue
Block a user