From 79935f61bf647029a7db4e0423e52d983a516012 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 2 Feb 2009 20:46:33 +0000 Subject: [PATCH] use wxCommandEventHandler instead of manually writing several casts git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/event/event.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/event/event.cpp b/samples/event/event.cpp index 8959099..4461234 100644 --- a/samples/event/event.cpp +++ b/samples/event/event.cpp @@ -42,7 +42,7 @@ wxDEFINE_EVENT(wxEVT_MY_CUSTOM_COMMAND, wxCommandEvent) #define EVT_MY_CUSTOM_COMMAND(id, fn) \ DECLARE_EVENT_TABLE_ENTRY( \ wxEVT_MY_CUSTOM_COMMAND, id, wxID_ANY, \ - (wxObjectEventFunction)(wxEventFunction) wxStaticCastEvent( wxCommandEventFunction, &fn ), \ + wxCommandEventHandler(fn), \ (wxObject *) NULL \ ), -- 2.7.4