diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-08-27 11:44:57 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2016-08-27 13:26:38 (GMT) |
commit | e80314d7a8208214ac85bf9b2e769a7e3b5aaa04 (patch) | |
tree | f172fa157eee4f575ba4c57f86cbf85591ffd54e | |
parent | 563ac22a1646f1287d1baac755e13cbe33c1fe7b (diff) | |
download | CMake-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.cxx | 7 |
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. |