X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..682214d5c6ec3e56dbdfd0c97d70d87e614b38c2:/include/wx/dynload.h?ds=inline diff --git a/include/wx/dynload.h b/include/wx/dynload.h index 8f119b49bb..d70c8cfa1f 100644 --- a/include/wx/dynload.h +++ b/include/wx/dynload.h @@ -116,17 +116,17 @@ public: // macro because it's of arguable use outside of that. #if WXWIN_COMPATIBILITY_2_2 - static wxPluginLibrary *GetObjectFromHandle(wxDllType handle); + wxDEPRECATED( static wxPluginLibrary *GetObjectFromHandle(wxDllType handle) ); #endif // Instance methods. - wxPluginManager() : m_entry(NULL) {}; + wxPluginManager() : m_entry(NULL) {} wxPluginManager(const wxString &libname, int flags = wxDL_DEFAULT) { Load(libname, flags); } - ~wxPluginManager() { Unload(); } + ~wxPluginManager() { if ( IsLoaded() ) Unload(); } bool Load(const wxString &libname, int flags = wxDL_DEFAULT); void Unload();