X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/457814b5aa2ee5c83abc65a6aee2a3ebcb1af34f..0141d2c9bd1033b773847447029f4598b7d9e90e:/samples/docview/view.h diff --git a/samples/docview/view.h b/samples/docview/view.h index 074d940f0a..d69cef8fec 100644 --- a/samples/docview/view.h +++ b/samples/docview/view.h @@ -46,12 +46,12 @@ class DrawingView: public wxView wxFrame *frame; MyCanvas *canvas; - DrawingView(void) { canvas = NULL; frame = NULL; }; + DrawingView(void) { canvas = (MyCanvas *) NULL; frame = (wxFrame *) NULL; }; ~DrawingView(void) {}; bool OnCreate(wxDocument *doc, long flags); void OnDraw(wxDC *dc); - void OnUpdate(wxView *sender, wxObject *hint = NULL); + void OnUpdate(wxView *sender, wxObject *hint = (wxObject *) NULL); bool OnClose(bool deleteWindow = TRUE); void OnCut(wxCommandEvent& event); @@ -67,12 +67,12 @@ class TextEditView: public wxView wxFrame *frame; MyTextWindow *textsw; - TextEditView(wxDocument *doc = NULL): wxView(doc) { frame = NULL; textsw = NULL; } + TextEditView(): wxView() { frame = (wxFrame *) NULL; textsw = (MyTextWindow *) NULL; } ~TextEditView(void) {} bool OnCreate(wxDocument *doc, long flags); void OnDraw(wxDC *dc); - void OnUpdate(wxView *sender, wxObject *hint = NULL); + void OnUpdate(wxView *sender, wxObject *hint = (wxObject *) NULL); bool OnClose(bool deleteWindow = TRUE); };