From 9d9f692024184446e2defac850052e0679d420e4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 21 Oct 2017 23:17:40 +0200 Subject: [PATCH] Get rid of nonsensical "&*" construct in RunScriptSync() Just pass JS result object directly to the WebKit function, there is really no need to dereference it and then take its address for this. --- src/gtk/webview_webkit2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/webview_webkit2.cpp b/src/gtk/webview_webkit2.cpp index dcd8639335..a7cb27434b 100644 --- a/src/gtk/webview_webkit2.cpp +++ b/src/gtk/webview_webkit2.cpp @@ -1138,8 +1138,8 @@ bool wxWebViewWebKit::RunScriptSync(const wxString& javascript, wxString* output return false; } - JSGlobalContextRef context = webkit_javascript_result_get_global_context (&*js_result); - JSValueRef value = webkit_javascript_result_get_value (&*js_result); + JSGlobalContextRef context = webkit_javascript_result_get_global_context(js_result); + JSValueRef value = webkit_javascript_result_get_value(js_result); JSValueRef exception = NULL; wxJSStringRef js_value(JSValueIsObject(context, value) ?