summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-13 14:43:33 +0000
committerrubidium <rubidium@openttd.org>2008-05-13 14:43:33 +0000
commitdddfaaac7db08252a500fb2d0d1fb2cc7200d20c (patch)
tree07ccf25e54bf3e9762d7fd6e9e3b30a6138e95f6 /src/window_gui.h
parentdb69f81fe7693f12ec212af92698a524be7bc905 (diff)
downloadopenttd-dddfaaac7db08252a500fb2d0d1fb2cc7200d20c.tar.xz
(svn r13069) -Codechange: it is no longer needed to pass a void *data pointer with the WE_CREATE message because nothing uses it anymore.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 2edef2343..8102340ae 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -144,10 +144,6 @@ struct WindowEvent {
byte event;
union {
struct {
- void *data;
- } create;
-
- struct {
Point pt;
int widget;
} click;
@@ -291,13 +287,13 @@ private:
protected:
void Initialize(int x, int y, int min_width, int min_height,
- WindowProc *proc, WindowClass cls, const Widget *widget, int window_number, void *data);
+ WindowProc *proc, WindowClass cls, const Widget *widget, int window_number);
void FindWindowPlacementAndResize(int def_width, int def_height);
void FindWindowPlacementAndResize(const WindowDesc *desc);
public:
- Window(int x, int y, int width, int height, WindowProc *proc, WindowClass cls, const Widget *widget, void *data = NULL);
- Window(const WindowDesc *desc, void *data = NULL, WindowNumber number = 0);
+ Window(int x, int y, int width, int height, WindowProc *proc, WindowClass cls, const Widget *widget);
+ Window(const WindowDesc *desc, WindowNumber number = 0);
virtual ~Window();
@@ -642,10 +638,10 @@ bool IsWindowOfPrototype(const Window *w, const Widget *widget);
* @return see Window pointer of the newly created window
*/
template <typename Wcls>
-Wcls *AllocateWindowDescFront(const WindowDesc *desc, int window_number, void *data = NULL)
+Wcls *AllocateWindowDescFront(const WindowDesc *desc, int window_number)
{
if (BringWindowToFrontById(desc->cls, window_number)) return NULL;
- return new Wcls(desc, data, window_number);
+ return new Wcls(desc, window_number);
}
void DrawWindowViewport(const Window *w);