(svn r13069) -Codechange: it is no longer needed to pass a void *data pointer with the WE_CREATE message because nothing uses it anymore.
This commit is contained in:
@@ -143,10 +143,6 @@ enum WindowEventCodes {
|
||||
struct WindowEvent {
|
||||
byte event;
|
||||
union {
|
||||
struct {
|
||||
void *data;
|
||||
} create;
|
||||
|
||||
struct {
|
||||
Point pt;
|
||||
int widget;
|
||||
@@ -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);
|
||||
|
Reference in New Issue
Block a user