// deletes the associated wxPersistentObject
void Unregister(void *obj);
-
+
// save/restore the state of an object
//
// these methods do nothing if DisableSaving/Restoring() was called
m_doRestore = true;
}
+ // trivial but virtual dtor
+ virtual ~wxPersistenceManager();
+
+
// helpers of Save/Restore()
//
// TODO: make this customizable by allowing
wxPersistentObject * const pers = wxCreatePersistentObject(obj);
return wxPersistenceManager::Get().RegisterAndRestore(obj, pers);
-
+
}
#endif // _WX_PERSIST_H_
return s_manager;
}
+wxPersistenceManager::~wxPersistenceManager()
+{
+}
+
wxString
wxPersistenceManager::GetKey(const wxPersistentObject& who,
const wxString& name) const