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.
This commit is contained in:
Vadim Zeitlin
2017-10-21 23:17:40 +02:00
parent 0e2f6e5c52
commit 9d9f692024

View File

@@ -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) ?