(svn r15414) -Codechange: s/delete FindWindowById/DeleteWindowById/

pull/155/head
rubidium 16 years ago
parent 412f93b877
commit cba3be0b4f

@ -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…
Cancel
Save