X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/50567b69d60faa5a3575a077bb4f98530813c80d..1a6a6043f79b8b12958e6cb09d443213a969507d:/include/wx/process.h diff --git a/include/wx/process.h b/include/wx/process.h index 571bf65c29..91c71032eb 100644 --- a/include/wx/process.h +++ b/include/wx/process.h @@ -114,16 +114,24 @@ public: // the exit code int GetExitCode() { return m_exitcode; } + // implement the base class pure virtual + virtual wxEvent *Clone() const { return new wxProcessEvent(*this); } + public: - int m_pid, m_exitcode; + int m_pid, + m_exitcode; DECLARE_DYNAMIC_CLASS(wxProcessEvent) }; -typedef void (wxObject::*wxProcessEventFunction)(wxProcessEvent&); +typedef void (wxEvtHandler::*wxProcessEventFunction)(wxProcessEvent&); #define EVT_END_PROCESS(id, func) \ - DECLARE_EVENT_TABLE_ENTRY( wxEVT_END_PROCESS, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxProcessEventFunction) & func, NULL), + DECLARE_EVENT_TABLE_ENTRY( \ + wxEVT_END_PROCESS, id, -1, \ + (wxObjectEventFunction) \ + (wxEventFunction) \ + (wxProcessEventFunction) & func, NULL), #endif // _WX_PROCESSH__