autogen: Remove unnecessary nullptr check

In commit b1b3602cda (FASTBuild: remove non-existent autogen byproducts,
2025-11-10) we added an unnecessary nullptr check on a pointer we know
to be non-nullptr.  Since then, `clang-analyzer` takes that check as a
hint that the pointer might be nullptr, and has reported missing nullptr
checks elsewhere.
This commit is contained in:
Brad King
2025-11-13 08:23:56 -05:00
parent 39d4fc2bb4
commit 742c70a5da

View File

@@ -1395,7 +1395,7 @@ bool cmQtAutoGenInitializer::InitAutogenTarget()
if (this->Uic.Enabled) {
for (auto const& file : this->Uic.UiHeaders) {
this->AddGeneratedSource(file.first, this->Uic);
if (this->GlobalGen && !GlobalGen->IsFastbuild()) {
if (!this->GlobalGen->IsFastbuild()) {
autogenByproducts.push_back(file.second);
}
}