summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-08-27 11:44:57 (GMT)
committerStephen Kelly <steveire@gmail.com>2016-08-27 13:26:38 (GMT)
commite80314d7a8208214ac85bf9b2e769a7e3b5aaa04 (patch)
treef172fa157eee4f575ba4c57f86cbf85591ffd54e
parent563ac22a1646f1287d1baac755e13cbe33c1fe7b (diff)
downloadCMake-e80314d7a8208214ac85bf9b2e769a7e3b5aaa04.zip
CMake-e80314d7a8208214ac85bf9b2e769a7e3b5aaa04.tar.gz
CMake-e80314d7a8208214ac85bf9b2e769a7e3b5aaa04.tar.bz2
Ninja: Replace ternary with if()
On principle of segregating the interface.
-rw-r--r--Source/cmLocalNinjaGenerator.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx
index 9e2c920..bbec634 100644
--- a/Source/cmLocalNinjaGenerator.cxx
+++ b/Source/cmLocalNinjaGenerator.cxx
@@ -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.