Use the correct function type cast in EVT_WEBKIT_NEW_WINDOW.

Use wxWebKitNewWindowEventHandler to perform a proper static_cast<>, which
detects incorrect casts during compilation, instead of
wxWebKitNewWindowEventFunction which was just doing an unsafe C-style cast.

Cloes #13805.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2011-12-24 15:43:12 +00:00
parent 70ef16f4e2
commit 7182483bf7

View File

@ -232,7 +232,7 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_WEBKIT_NEW_WINDOW, wxWebKitNew
wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_WEBKIT_NEW_WINDOW, \ wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_WEBKIT_NEW_WINDOW, \
wxID_ANY, \ wxID_ANY, \
wxID_ANY, \ wxID_ANY, \
wxWebKitNewWindowEventFunction( func ), \ wxWebKitNewWindowEventHandler( func ), \
NULL ), NULL ),
#endif // wxUSE_WEBKIT #endif // wxUSE_WEBKIT