From 7182483bf7f81ea38a65f452f6cf4061de3bfb70 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 24 Dec 2011 15:43:12 +0000 Subject: [PATCH] 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 --- include/wx/html/webkit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/html/webkit.h b/include/wx/html/webkit.h index 4f7a3dc8ec..4be2ad16a2 100644 --- a/include/wx/html/webkit.h +++ b/include/wx/html/webkit.h @@ -232,7 +232,7 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_WEBKIT_NEW_WINDOW, wxWebKitNew wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_WEBKIT_NEW_WINDOW, \ wxID_ANY, \ wxID_ANY, \ - wxWebKitNewWindowEventFunction( func ), \ + wxWebKitNewWindowEventHandler( func ), \ NULL ), #endif // wxUSE_WEBKIT -- 2.45.2