Use newer wxDECLARE_* macros
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
#include "wx/thread.h"
|
#include "wx/thread.h"
|
||||||
|
|
||||||
const wxEventType wxEVT_WORKER = wxNewEventType();
|
const wxEventType wxEVT_WORKER = wxNewEventType();
|
||||||
#define EVT_WORKER(func) DECLARE_EVENT_TABLE_ENTRY( wxEVT_WORKER, -1, -1, (wxObjectEventFunction) (wxEventFunction) (WorkerEventFunction) & func, (wxObject *) NULL ),
|
#define EVT_WORKER(func) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_WORKER, -1, -1, (wxObjectEventFunction) (wxEventFunction) (WorkerEventFunction) & func, (wxObject *) NULL ),
|
||||||
|
|
||||||
const int timeout_val = 1000;
|
const int timeout_val = 1000;
|
||||||
|
|
||||||
|
@@ -64,7 +64,7 @@ const char *GetSocketErrorMsg(int pSockError)
|
|||||||
//event sent by workers to server class
|
//event sent by workers to server class
|
||||||
//after client is served
|
//after client is served
|
||||||
const wxEventType wxEVT_WORKER = wxNewEventType();
|
const wxEventType wxEVT_WORKER = wxNewEventType();
|
||||||
#define EVT_WORKER(func) DECLARE_EVENT_TABLE_ENTRY( wxEVT_WORKER, -1, -1, (wxObjectEventFunction) (wxEventFunction) (WorkerEventFunction) & func, (wxObject *) NULL ),
|
#define EVT_WORKER(func) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_WORKER, -1, -1, (wxObjectEventFunction) (wxEventFunction) (WorkerEventFunction) & func, (wxObject *) NULL ),
|
||||||
|
|
||||||
class WorkerEvent : public wxEvent
|
class WorkerEvent : public wxEvent
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user