From 8796331d83e09dda2ac4642f9215845cc2dd321c Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 6 May 2008 21:28:30 +0000 Subject: (svn r12975) -Codechange: replace DeleteWindow(w) with delete w. --- src/toolbar_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/toolbar_gui.cpp') 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); -- cgit v1.2.3-54-g00ecf