X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/64b9776ca61d8d589da77c1524ae8ae9425dd826..8528d60a8a1225b57310ef12cb55f7ce07fbc762:/demos/life/life.cpp diff --git a/demos/life/life.cpp b/demos/life/life.cpp index fb1bd8bafa..8366b49890 100644 --- a/demos/life/life.cpp +++ b/demos/life/life.cpp @@ -150,7 +150,7 @@ IMPLEMENT_APP(LifeApp) // some shortcuts #define ADD_TOOL(id, bmp, tooltip, help) \ - toolBar->AddTool(id, bmp, wxNullBitmap, false, wxDefaultCoord, wxDefaultCoord, (wxObject *)NULL, tooltip, help) + toolBar->AddTool(id, wxEmptyString, bmp, wxNullBitmap, wxITEM_NORMAL, tooltip, help) // -------------------------------------------------------------------------- @@ -163,9 +163,8 @@ bool LifeApp::OnInit() // create the main application window LifeFrame *frame = new LifeFrame(); - // show it and tell the application that it's our main window + // show it frame->Show(true); - SetTopWindow(frame); // just for Motif #ifdef __WXMOTIF__ @@ -354,10 +353,10 @@ void LifeFrame::UpdateInfoText() { wxString msg; - msg.Printf(_(" Generation: %u (T: %u ms), Population: %u "), + msg.Printf(_(" Generation: %lu (T: %lu ms), Population: %lu "), m_tics, m_topspeed? 0 : m_interval, - m_life->GetNumCells()); + static_cast(m_life->GetNumCells())); m_text->SetLabel(msg); }