summaryrefslogtreecommitdiff
path: root/src/widgets
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
commite6c944a6c4507ec00948391d1b0bdf300bbd879e (patch)
tree248a2b8909d0045aad2724ae25b5f9064e597dd1 /src/widgets
parent46a0ebe1d931bb49dcc10e811f8f85ea91e1dcb5 (diff)
downloadopenttd-e6c944a6c4507ec00948391d1b0bdf300bbd879e.tar.xz
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/dropdown.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/dropdown.cpp b/src/widgets/dropdown.cpp
index ea2d3a5f5..5eb79e9f7 100644
--- a/src/widgets/dropdown.cpp
+++ b/src/widgets/dropdown.cpp
@@ -172,7 +172,7 @@ static void DropDownMenuWndProc(Window *w, WindowEvent *e)
case WE_MOUSELOOP: {
Window *w2 = FindWindowById(WP(w, dropdown_d).parent_wnd_class, WP(w,dropdown_d).parent_wnd_num);
if (w2 == NULL) {
- DeleteWindow(w);
+ delete w;
return;
}
@@ -182,7 +182,7 @@ static void DropDownMenuWndProc(Window *w, WindowEvent *e)
e.we.dropdown.button = WP(w, dropdown_d).parent_button;
e.we.dropdown.index = WP(w, dropdown_d).selected_index;
w2->HandleWindowEvent(&e);
- DeleteWindow(w);
+ delete w;
return;
}
@@ -362,7 +362,7 @@ void HideDropDownMenu(Window *pw)
if (pw->window_class == WP(*wz, dropdown_d).parent_wnd_class &&
pw->window_number == WP(*wz, dropdown_d).parent_wnd_num) {
- DeleteWindow(*wz);
+ delete *wz;
break;
}
}