diff options
author | rubidium <rubidium@openttd.org> | 2008-05-06 21:28:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-06 21:28:30 +0000 |
commit | 8796331d83e09dda2ac4642f9215845cc2dd321c (patch) | |
tree | 248a2b8909d0045aad2724ae25b5f9064e597dd1 /src/rail_gui.cpp | |
parent | 7b6ce158fe49d95f4e732ceb8372e2b06fabc559 (diff) | |
download | openttd-8796331d83e09dda2ac4642f9215845cc2dd321c.tar.xz |
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
Diffstat (limited to 'src/rail_gui.cpp')
-rw-r--r-- | src/rail_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index 840bf8062..fab382325 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -1128,7 +1128,7 @@ static void StationBuildWndProc(Window *w, WindowEvent *e) case WE_MOUSELOOP: if (WP(w, def_d).close) { - DeleteWindow(w); + delete w; return; } CheckRedrawStationCoverage(w); @@ -1352,7 +1352,7 @@ static void SignalBuildWndProc(Window *w, WindowEvent *e) break; case WE_MOUSELOOP: - if (WP(w, def_d).close) DeleteWindow(w); + if (WP(w, def_d).close) delete w; return; case WE_DESTROY: @@ -1443,7 +1443,7 @@ static void BuildTrainDepotWndProc(Window *w, WindowEvent *e) break; case WE_MOUSELOOP: - if (WP(w, def_d).close) DeleteWindow(w); + if (WP(w, def_d).close) delete w; return; case WE_DESTROY: @@ -1542,7 +1542,7 @@ static void BuildWaypointWndProc(Window *w, WindowEvent *e) } case WE_MOUSELOOP: - if (WP(w, def_d).close) DeleteWindow(w); + if (WP(w, def_d).close) delete w; break; case WE_DESTROY: |