X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a7dbf7c8bc2b040ad4ac88c1fd19e878ebaefdf2..3374d03d51d6b39aec3fd8c46b16935f05712e88:/samples/notebook/notebook.cpp diff --git a/samples/notebook/notebook.cpp b/samples/notebook/notebook.cpp index 62dcd75b0a..b38e860528 100644 --- a/samples/notebook/notebook.cpp +++ b/samples/notebook/notebook.cpp @@ -332,7 +332,6 @@ MyFrame::MyFrame() m_panel->SetSizer(m_sizerFrame); - m_sizerFrame->Fit(this); m_sizerFrame->SetSizeHints(this); Centre(wxBOTH); @@ -605,7 +604,7 @@ void MyFrame::OnHitTest(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnType(wxCommandEvent& event) { - m_type = wx_static_cast(BookType, event.GetId() - ID_BOOK_NOTEBOOK); + m_type = static_cast(event.GetId() - ID_BOOK_NOTEBOOK); if ( m_bookCtrl ) m_sizerFrame->Hide(m_bookCtrl); @@ -920,7 +919,7 @@ void MyFrame::OnBookCtrl(wxBookCtrlBaseEvent& event) // NB: can't use wxStaticCast here as wxBookCtrlBase is not in // wxRTTI const wxBookCtrlBase * const - book = wx_static_cast(wxBookCtrlBase *, event.GetEventObject()); + book = static_cast(event.GetEventObject()); if ( idx != wxNOT_FOUND && book && book->GetPageText(idx) == VETO_PAGE_NAME ) {