summaryrefslogtreecommitdiff
path: root/src/osk_gui.cpp
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/osk_gui.cpp
parent46a0ebe1d931bb49dcc10e811f8f85ea91e1dcb5 (diff)
downloadopenttd-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.cpp4
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 */