diff options
author | Vitaly Stakhovsky <vvs31415@users.noreply.gitlab.com> | 2024-08-27 13:30:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@users.noreply.gitlab.com> | 2024-08-27 14:56:38 (GMT) |
commit | 58da4aa47df7d12c54c2d3f26722eca5dd8ee10f (patch) | |
tree | c5d9bf243c3ec1526fd9e171f28d581a6af57e70 /Source/cmGlobalNinjaGenerator.cxx | |
parent | 72607d3402b91c3a9f4579c86175e4ca1ce6aa4e (diff) | |
download | CMake-58da4aa47df7d12c54c2d3f26722eca5dd8ee10f.zip CMake-58da4aa47df7d12c54c2d3f26722eca5dd8ee10f.tar.gz CMake-58da4aa47df7d12c54c2d3f26722eca5dd8ee10f.tar.bz2 |
Source: Avoid comparing pointers to nullptr
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index b051d67..222b927 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -2068,7 +2068,7 @@ std::string cmGlobalNinjaGenerator::CMakeCmd() const std::string cmGlobalNinjaGenerator::NinjaCmd() const { const auto& lgen = this->LocalGenerators[0]; - if (lgen != nullptr) { + if (lgen) { return lgen->ConvertToOutputFormat(this->NinjaCommand, cmOutputConverter::SHELL); } |