X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0a0e6a5bafe2efb3466b1527eb7eb670aaa5e634..f196316400fd247a760b2ef77d5064b4e10e5471:/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 6145f48f11..dea726397b 100644 --- a/include/wx/msw/ole/automtn.h +++ b/include/wx/msw/ole/automtn.h @@ -9,13 +9,13 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "automtn.h" -#endif - #ifndef _WX_AUTOMTN_H_ #define _WX_AUTOMTN_H_ +#include "wx/defs.h" + +#if wxUSE_OLE_AUTOMATION + #include "wx/object.h" #include "wx/variant.h" @@ -35,10 +35,10 @@ 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; }; + inline void SetDispatchPtr(WXIDISPATCH* dispatchPtr) { m_dispatchPtr = dispatchPtr; } inline WXIDISPATCH* GetDispatchPtr() const { return m_dispatchPtr; } // Get a dispatch pointer from the current object associated @@ -96,6 +96,6 @@ public: DECLARE_NO_COPY_CLASS(wxAutomationObject) }; +#endif // wxUSE_OLE_AUTOMATION -#endif - // _WX_AUTOMTN_H_ +#endif // _WX_AUTOMTN_H_