summaryrefslogtreecommitdiff
path: root/src/road_gui.cpp
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
commitcba3be0b4f47beed4924953910cc39fd700a151a (patch)
tree9b24326a5fc27f764e5568e206218028b2f1c974 /src/road_gui.cpp
parent412f93b877d650b911f2167018cd69e8e8a25d9b (diff)
downloadopenttd-cba3be0b4f47beed4924953910cc39fd700a151a.tar.xz
(svn r15414) -Codechange: s/delete FindWindowById/DeleteWindowById/
Diffstat (limited to 'src/road_gui.cpp')
-rw-r--r--src/road_gui.cpp10
1 files changed, 5 insertions, 5 deletions
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)