X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..42eba91294e1c374908b63bdc5f22a5c4c29f110:/include/wx/msw/ole/automtn.h?ds=inline diff --git a/include/wx/msw/ole/automtn.h b/include/wx/msw/ole/automtn.h index b5d7b8c543..e81b0e9096 100644 --- a/include/wx/msw/ole/automtn.h +++ b/include/wx/msw/ole/automtn.h @@ -12,6 +12,10 @@ #ifndef _WX_AUTOMTN_H_ #define _WX_AUTOMTN_H_ +#include "wx/defs.h" + +#if wxUSE_OLE_AUTOMATION + #include "wx/object.h" #include "wx/variant.h" @@ -31,7 +35,7 @@ class WXDLLEXPORT wxAutomationObject: public wxObject { public: wxAutomationObject(WXIDISPATCH* dispatchPtr = NULL); - ~wxAutomationObject(); + virtual ~wxAutomationObject(); // Set/get dispatch pointer inline void SetDispatchPtr(WXIDISPATCH* dispatchPtr) { m_dispatchPtr = dispatchPtr; }; @@ -92,6 +96,6 @@ public: DECLARE_NO_COPY_CLASS(wxAutomationObject) }; +#endif // wxUSE_OLE_AUTOMATION -#endif - // _WX_AUTOMTN_H_ +#endif // _WX_AUTOMTN_H_