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/osk_gui.cpp | |
parent | 46a0ebe1d931bb49dcc10e811f8f85ea91e1dcb5 (diff) | |
download | openttd-e6c944a6c4507ec00948391d1b0bdf300bbd879e.tar.xz |
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
Diffstat (limited to 'src/osk_gui.cpp')
-rw-r--r-- | src/osk_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osk_gui.cpp b/src/osk_gui.cpp index c2b3b3bbf..290e377b2 100644 --- a/src/osk_gui.cpp +++ b/src/osk_gui.cpp @@ -164,7 +164,7 @@ static void OskWndProc(Window *w, WindowEvent *e) parent->HandleWindowEvent(&e); } } - DeleteWindow(w); + delete w; break; case OSK_WIDGET_CANCEL: @@ -179,7 +179,7 @@ static void OskWndProc(Window *w, WindowEvent *e) UpdateTextBufferSize(&qs->text); MoveTextBufferPos(&qs->text, WKC_END); } - DeleteWindow(w); + delete w; break; } /* make sure that the parent window's textbox also gets updated */ |