Codefix: Use bitset .None() or .Any() instead of comparing against an empty bitset. (#14327)

This commit is contained in:
Peter Nelson
2025-06-04 07:31:44 +01:00
committed by GitHub
parent 8f10f9fb5a
commit 2e78c24ba3
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1454,7 +1454,7 @@ struct StationViewWindow : public Window {
this->SetWidgetLoweredState(WID_SV_CLOSE_AIRPORT, st->facilities.Test(StationFacility::Airport) && st->airport.blocks.Test(AirportBlock::AirportClosed));
extern const Station *_viewport_highlight_station;
this->SetWidgetDisabledState(WID_SV_CATCHMENT, st->facilities == StationFacilities{});
this->SetWidgetDisabledState(WID_SV_CATCHMENT, st->facilities.None());
this->SetWidgetLoweredState(WID_SV_CATCHMENT, _viewport_highlight_station == st);
this->DrawWidgets();