mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 11:22:21 -06:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user