Fix linking to wxObjectEventFunctor with Clang on Windows

Linking specific applications (sockets/baseserver, base test) resulted in the
following error: undefined reference to `__imp__ZTV20wxObjectEventFunctor'
Fix this by implementing the destructor inside the base library.
This commit is contained in:
Maarten Bent
2019-07-21 17:21:18 +02:00
parent 2815870507
commit c0f2f38011
2 changed files with 10 additions and 0 deletions

View File

@@ -213,6 +213,8 @@ private:
class WXDLLIMPEXP_BASE wxObjectEventFunctor : public wxEventFunctor class WXDLLIMPEXP_BASE wxObjectEventFunctor : public wxEventFunctor
{ {
public: public:
virtual ~wxObjectEventFunctor();
wxObjectEventFunctor(wxObjectEventFunction method, wxEvtHandler *handler) wxObjectEventFunctor(wxObjectEventFunction method, wxEvtHandler *handler)
: m_handler( handler ), m_method( method ) : m_handler( handler ), m_method( method )
{ } { }

View File

@@ -360,6 +360,14 @@ wxEventFunctor::~wxEventFunctor()
{ {
} }
// ----------------------------------------------------------------------------
// wxObjectEventFunctor
// ----------------------------------------------------------------------------
wxObjectEventFunctor::~wxObjectEventFunctor()
{
}
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxEvent // wxEvent
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------