X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/87728739f23c6fcc737614e2e726f68778f9415b..0c02f0701e960de4a1f60bc821c19c03b8fc88c3:/samples/event/event.cpp diff --git a/samples/event/event.cpp b/samples/event/event.cpp index a960f5dcc0..4fd024abb8 100644 --- a/samples/event/event.cpp +++ b/samples/event/event.cpp @@ -60,7 +60,7 @@ DEFINE_EVENT_TYPE(wxEVT_MY_CUSTOM_COMMAND) #define EVT_MY_CUSTOM_COMMAND(id, fn) \ DECLARE_EVENT_TABLE_ENTRY( \ wxEVT_MY_CUSTOM_COMMAND, id, -1, \ - (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&fn, \ + (wxObjectEventFunction)(wxEventFunction) wxStaticCastEvent( wxCommandEventFunction, &fn ), \ (wxObject *) NULL \ ),