(svn r13041) -Fix: calling a virtual function on a not fully constructed object is bound to cause errors.

This commit is contained in:
rubidium
2008-05-11 11:41:18 +00:00
parent 599bc8942e
commit e63137f47f
6 changed files with 34 additions and 7 deletions

View File

@@ -279,8 +279,10 @@ private:
void HandleWindowEvent(WindowEvent *e);
protected:
void Initialize(int x, int y, int min_width, int min_height, int def_width, int def_height,
void Initialize(int x, int y, int min_width, int min_height,
WindowProc *proc, WindowClass cls, const Widget *widget, int window_number, void *data);
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);