summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-02-08 16:00:57 +0000
committerrubidium <rubidium@openttd.org>2009-02-08 16:00:57 +0000
commit57b27ffbab9ed205dfc5099a22c0c4e791ec1421 (patch)
tree9b24326a5fc27f764e5568e206218028b2f1c974 /src
parent856f26e35b51447dc3cb707dcf0dbd5a87cfe3c0 (diff)
downloadopenttd-57b27ffbab9ed205dfc5099a22c0c4e791ec1421.tar.xz
(svn r15414) -Codechange: s/delete FindWindowById/DeleteWindowById/
Diffstat (limited to 'src')
-rw-r--r--src/airport_gui.cpp4
-rw-r--r--src/dock_gui.cpp8
-rw-r--r--src/rail_gui.cpp10
-rw-r--r--src/road_gui.cpp10
4 files changed, 16 insertions, 16 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp
index ac0b2e526..43fc6e78a 100644
--- a/src/airport_gui.cpp
+++ b/src/airport_gui.cpp
@@ -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);
}
};
diff --git a/src/dock_gui.cpp b/src/dock_gui.cpp
index b79f5d36a..f806d22e2 100644
--- a/src/dock_gui.cpp
+++ b/src/dock_gui.cpp
@@ -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)
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index e00753c30..f483b4d74 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -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)
diff --git a/src/road_gui.cpp b/src/road_gui.cpp
index 89d15ac72..6fd93cf8c 100644
--- a/src/road_gui.cpp
+++ b/src/road_gui.cpp
@@ -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)