X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/413eac73fd4e207a46f94821dd47feac3da7c287..5b88a837ba75928cd3835a6b97ae2bf5ad983a6e:/interface/wx/persist.h diff --git a/interface/wx/persist.h b/interface/wx/persist.h index 8c31fb2976..bb0dc58c31 100644 --- a/interface/wx/persist.h +++ b/interface/wx/persist.h @@ -259,6 +259,23 @@ protected: framework. @see @ref persistence_defining + + @header{wx/persist.h} */ template wxPersistentObject *wxCreatePersistentObject(T *obj); + +/** + A shorter synonym for wxPersistenceManager::RegisterAndRestore(). + + This function simply calls wxPersistenceManager::RegisterAndRestore() but + using it results in slightly shorter code as it calls + wxPersistenceManager::Get() internally. + + For the implementation reasons, this function @em mucst be used instead of + the template method when using Microsoft Visual C++ 6 compiler. + + @header{wx/persist.h} + */ +template +bool wxPersistentRegisterAndRestore(T *obj);