X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0fa541e8706f74887efeba9e475eae618873da2a..e7492fa205a0a8a548aa437629636a42269c7b88:/samples/widgets/widgets.cpp diff --git a/samples/widgets/widgets.cpp b/samples/widgets/widgets.cpp index a808a3a87f..19d86f02e3 100644 --- a/samples/widgets/widgets.cpp +++ b/samples/widgets/widgets.cpp @@ -367,7 +367,7 @@ WidgetsFrame::WidgetsFrame(const wxString& title) : wxFrame(NULL, wxID_ANY, title) { SetName("Main"); - const bool sizeSet = wxPersistenceManager::Get().RegisterAndRestore(this); + const bool sizeSet = wxPersistentRegisterAndRestore(this); // set the frame icon SetIcon(wxICON(sample)); @@ -617,7 +617,7 @@ void WidgetsFrame::InitBook() wxEVT_COMMAND_WIDGETS_PAGE_CHANGED, wxWidgetsbookEventHandler(WidgetsFrame::OnPageChanged) ); - const bool pageSet = wxPersistenceManager::Get().RegisterAndRestore(m_book); + const bool pageSet = wxPersistentRegisterAndRestore(m_book); #if USE_TREEBOOK // for treebook page #0 is empty parent page only so select the first page