From 16d29f56dde7b5c3ecf265943d027ff5aadc9c0c Mon Sep 17 00:00:00 2001 From: Jani Hautakangas Date: Mon, 12 Aug 2024 16:20:54 +0300 Subject: [PATCH] [wpe] change static_cast(*ptr) to reinrterpret_cast(*ptr) --- wpe/src/main/cpp/Browser/Page.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpe/src/main/cpp/Browser/Page.cpp b/wpe/src/main/cpp/Browser/Page.cpp index b12926a42..516bdc105 100644 --- a/wpe/src/main/cpp/Browser/Page.cpp +++ b/wpe/src/main/cpp/Browser/Page.cpp @@ -87,7 +87,7 @@ class JNIPageCache final : public JNI::TypedClass { static gboolean onScriptDialog(Page* page, WebKitScriptDialog* dialog, WebKitWebView* webView) { - auto dialogPtr = static_cast(webkit_script_dialog_ref(dialog)); + auto dialogPtr = reinterpret_cast(webkit_script_dialog_ref(dialog)); auto jActiveURL = JNI::String(webkit_web_view_get_uri(webView)); auto jMessage = JNI::String(webkit_script_dialog_get_message(dialog)); callJavaMethod(getJNIPageCache().m_onScriptDialog, page->m_pageJavaInstance.get(), dialogPtr,