X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2108f33a68772013d4e1c9dc2e476bb8ae77ad8f..a54d6c1bbb35f6adce30704c987496acc0337020:/samples/docvwmdi/view.h diff --git a/samples/docvwmdi/view.h b/samples/docvwmdi/view.h index 074d940f0a..2f068c7c04 100644 --- a/samples/docvwmdi/view.h +++ b/samples/docvwmdi/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(wxDocument *doc = (wxDocument *) NULL): wxView(doc) { 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); };