changeset 11073:9f899b8c0460 draft

(svn r15414) -Codechange: s/delete FindWindowById/DeleteWindowById/
author rubidium <rubidium@openttd.org>
date Sun, 08 Feb 2009 16:00:57 +0000
parents 19fd43d5975d
children b1484309e4ec
files src/airport_gui.cpp src/dock_gui.cpp src/rail_gui.cpp src/road_gui.cpp
diffstat 4 files changed, 16 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/src/airport_gui.cpp
+++ b/src/airport_gui.cpp
@@ -123,8 +123,8 @@
 	{
 		this->RaiseButtons();
 
-		delete FindWindowById(WC_BUILD_STATION, 0);
-		delete FindWindowById(WC_SELECT_STATION, 0);
+		DeleteWindowById(WC_BUILD_STATION, 0);
+		DeleteWindowById(WC_SELECT_STATION, 0);
 	}
 };
 
--- a/src/dock_gui.cpp
+++ b/src/dock_gui.cpp
@@ -241,10 +241,10 @@
 	{
 		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)
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -742,11 +742,11 @@
 		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)
--- a/src/road_gui.cpp
+++ b/src/road_gui.cpp
@@ -526,11 +526,11 @@
 		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)