summaryrefslogtreecommitdiff
path: root/src/road_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-06 21:28:30 +0000
committerrubidium <rubidium@openttd.org>2008-05-06 21:28:30 +0000
commit8796331d83e09dda2ac4642f9215845cc2dd321c (patch)
tree248a2b8909d0045aad2724ae25b5f9064e597dd1 /src/road_gui.cpp
parent7b6ce158fe49d95f4e732ceb8372e2b06fabc559 (diff)
downloadopenttd-8796331d83e09dda2ac4642f9215845cc2dd321c.tar.xz
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
Diffstat (limited to 'src/road_gui.cpp')
-rw-r--r--src/road_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp
index 05a7fd55f..30400f606 100644
--- a/src/road_gui.cpp
+++ b/src/road_gui.cpp
@@ -767,7 +767,7 @@ static void BuildRoadDepotWndProc(Window *w, WindowEvent *e)
break;
case WE_MOUSELOOP:
- if (WP(w, def_d).close) DeleteWindow(w);
+ if (WP(w, def_d).close) delete w;
break;
case WE_DESTROY:
@@ -925,7 +925,7 @@ static void RoadStationPickerWndProc(Window *w, WindowEvent *e)
case WE_MOUSELOOP:
if (WP(w, def_d).close) {
- DeleteWindow(w);
+ delete w;
return;
}