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();
}