Skip to content

Commit

Permalink
[wpe] change static_cast<jlong>(*ptr) to reinrterpret_cast<jlong>(*ptr)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhani committed Aug 12, 2024
1 parent c0498de commit 16d29f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wpe/src/main/cpp/Browser/Page.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class JNIPageCache final : public JNI::TypedClass<JNIPage> {

static gboolean onScriptDialog(Page* page, WebKitScriptDialog* dialog, WebKitWebView* webView)
{
auto dialogPtr = static_cast<jlong>(webkit_script_dialog_ref(dialog));
auto dialogPtr = reinterpret_cast<jlong>(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,
Expand Down

0 comments on commit 16d29f5

Please sign in to comment.