From e80314d7a8208214ac85bf9b2e769a7e3b5aaa04 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sat, 27 Aug 2016 13:44:57 +0200 Subject: [PATCH] Ninja: Replace ternary with if() On principle of segregating the interface. --- Source/cmLocalNinjaGenerator.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx index 9e2c92088..bbec63426 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.