git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58733
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// deletes the associated wxPersistentObject
void Unregister(void *obj);
// deletes the associated wxPersistentObject
void Unregister(void *obj);
// save/restore the state of an object
//
// these methods do nothing if DisableSaving/Restoring() was called
// save/restore the state of an object
//
// these methods do nothing if DisableSaving/Restoring() was called
+ // trivial but virtual dtor
+ virtual ~wxPersistenceManager();
+
+
// helpers of Save/Restore()
//
// TODO: make this customizable by allowing
// helpers of Save/Restore()
//
// TODO: make this customizable by allowing
wxPersistentObject * const pers = wxCreatePersistentObject(obj);
return wxPersistenceManager::Get().RegisterAndRestore(obj, pers);
wxPersistentObject * const pers = wxCreatePersistentObject(obj);
return wxPersistenceManager::Get().RegisterAndRestore(obj, pers);
}
#endif // _WX_PERSIST_H_
}
#endif // _WX_PERSIST_H_
+wxPersistenceManager::~wxPersistenceManager()
+{
+}
+
wxString
wxPersistenceManager::GetKey(const wxPersistentObject& who,
const wxString& name) const
wxString
wxPersistenceManager::GetKey(const wxPersistentObject& who,
const wxString& name) const