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 | e6c944a6c4507ec00948391d1b0bdf300bbd879e (patch) | |
tree | 248a2b8909d0045aad2724ae25b5f9064e597dd1 /src/toolbar_gui.cpp | |
parent | 46a0ebe1d931bb49dcc10e811f8f85ea91e1dcb5 (diff) | |
download | openttd-e6c944a6c4507ec00948391d1b0bdf300bbd879e.tar.xz |
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
Diffstat (limited to 'src/toolbar_gui.cpp')
-rw-r--r-- | src/toolbar_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index 454e4a4d0..8323592d6 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -1142,7 +1142,7 @@ static void MenuWndProc(Window *w, WindowEvent *e) } int action_id = WP(w, menu_d).action_id; - DeleteWindow(w); + delete w; if (index >= 0) { assert((uint)index <= lengthof(_menu_clicked_procs)); @@ -1347,7 +1347,7 @@ static void PlayerMenuWndProc(Window *w, WindowEvent *e) index = WP(w, menu_d).sel_index; } - DeleteWindow(w); + delete w; if (index >= 0) { assert(index >= 0 && index < 30); |