mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -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) {
|
if (this->Uic.Enabled) {
|
||||||
for (auto const& file : this->Uic.UiHeaders) {
|
for (auto const& file : this->Uic.UiHeaders) {
|
||||||
this->AddGeneratedSource(file.first, this->Uic);
|
this->AddGeneratedSource(file.first, this->Uic);
|
||||||
if (this->GlobalGen && !GlobalGen->IsFastbuild()) {
|
if (!this->GlobalGen->IsFastbuild()) {
|
||||||
autogenByproducts.push_back(file.second);
|
autogenByproducts.push_back(file.second);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user