mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r15414) -Codechange: s/delete FindWindowById/DeleteWindowById/
This commit is contained in:
parent
856f26e35b
commit
57b27ffbab
@ -123,8 +123,8 @@ struct BuildAirToolbarWindow : Window {
|
||||
{
|
||||
this->RaiseButtons();
|
||||
|
||||
delete FindWindowById(WC_BUILD_STATION, 0);
|
||||
delete FindWindowById(WC_SELECT_STATION, 0);
|
||||
DeleteWindowById(WC_BUILD_STATION, 0);
|
||||
DeleteWindowById(WC_SELECT_STATION, 0);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -241,10 +241,10 @@ struct BuildDocksToolbarWindow : Window {
|
||||
{
|
||||
this->RaiseButtons();
|
||||
|
||||
delete FindWindowById(WC_BUILD_STATION, 0);
|
||||
delete FindWindowById(WC_BUILD_DEPOT, 0);
|
||||
delete FindWindowById(WC_SELECT_STATION, 0);
|
||||
delete FindWindowById(WC_BUILD_BRIDGE, 0);
|
||||
DeleteWindowById(WC_BUILD_STATION, 0);
|
||||
DeleteWindowById(WC_BUILD_DEPOT, 0);
|
||||
DeleteWindowById(WC_SELECT_STATION, 0);
|
||||
DeleteWindowById(WC_BUILD_BRIDGE, 0);
|
||||
}
|
||||
|
||||
virtual void OnPlacePresize(Point pt, TileIndex tile_from)
|
||||
|
@ -742,11 +742,11 @@ struct BuildRailToolbarWindow : Window {
|
||||
this->DisableWidget(RTW_REMOVE);
|
||||
this->InvalidateWidget(RTW_REMOVE);
|
||||
|
||||
delete FindWindowById(WC_BUILD_SIGNAL, 0);
|
||||
delete FindWindowById(WC_BUILD_STATION, 0);
|
||||
delete FindWindowById(WC_BUILD_DEPOT, 0);
|
||||
delete FindWindowById(WC_SELECT_STATION, 0);
|
||||
delete FindWindowById(WC_BUILD_BRIDGE, 0);
|
||||
DeleteWindowById(WC_BUILD_SIGNAL, 0);
|
||||
DeleteWindowById(WC_BUILD_STATION, 0);
|
||||
DeleteWindowById(WC_BUILD_DEPOT, 0);
|
||||
DeleteWindowById(WC_SELECT_STATION, 0);
|
||||
DeleteWindowById(WC_BUILD_BRIDGE, 0);
|
||||
}
|
||||
|
||||
virtual void OnPlacePresize(Point pt, TileIndex tile)
|
||||
|
@ -526,11 +526,11 @@ struct BuildRoadToolbarWindow : Window {
|
||||
this->InvalidateWidget(RTW_REMOVE);
|
||||
this->InvalidateWidget(RTW_ONE_WAY);
|
||||
|
||||
delete FindWindowById(WC_BUS_STATION, 0);
|
||||
delete FindWindowById(WC_TRUCK_STATION, 0);
|
||||
delete FindWindowById(WC_BUILD_DEPOT, 0);
|
||||
delete FindWindowById(WC_SELECT_STATION, 0);
|
||||
delete FindWindowById(WC_BUILD_BRIDGE, 0);
|
||||
DeleteWindowById(WC_BUS_STATION, 0);
|
||||
DeleteWindowById(WC_TRUCK_STATION, 0);
|
||||
DeleteWindowById(WC_BUILD_DEPOT, 0);
|
||||
DeleteWindowById(WC_SELECT_STATION, 0);
|
||||
DeleteWindowById(WC_BUILD_BRIDGE, 0);
|
||||
}
|
||||
|
||||
virtual void OnPlaceDrag(ViewportPlaceMethod select_method, ViewportDragDropSelectionProcess select_proc, Point pt)
|
||||
|
Loading…
Reference in New Issue
Block a user