X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e3e65dac0c4e7ad19e3c270caa1e0eea138e5d8d..a3c1786def55bcc233f9606acb1aceee956d184f:/samples/forty/pile.cpp diff --git a/samples/forty/pile.cpp b/samples/forty/pile.cpp index 02d3a92205..d92c1d821d 100644 --- a/samples/forty/pile.cpp +++ b/samples/forty/pile.cpp @@ -76,10 +76,10 @@ Pile::Pile(int x, int y, int dx, int dy) void Pile::Redraw(wxDC& dc ) { wxWindow *frame = wxTheApp->GetTopWindow(); - wxWindow *canvas = NULL; + wxWindow *canvas = (wxWindow *) NULL; if (frame) { - wxNode *node = frame->GetChildren()->First(); + wxNode *node = frame->GetChildren().First(); if (node) canvas = (wxWindow*)node->Data(); }