소스 검색

Ninja: Replace ternary with if()

On principle of segregating the interface.
Stephen Kelly 9 년 전
부모
커밋
e80314d7a8
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      Source/cmLocalNinjaGenerator.cxx

+ 4 - 3
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.