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:
@@ -1138,8 +1138,8 @@ bool wxWebViewWebKit::RunScriptSync(const wxString& javascript, wxString* output
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
JSGlobalContextRef context = webkit_javascript_result_get_global_context (&*js_result);
|
JSGlobalContextRef context = webkit_javascript_result_get_global_context(js_result);
|
||||||
JSValueRef value = webkit_javascript_result_get_value (&*js_result);
|
JSValueRef value = webkit_javascript_result_get_value(js_result);
|
||||||
|
|
||||||
JSValueRef exception = NULL;
|
JSValueRef exception = NULL;
|
||||||
wxJSStringRef js_value(JSValueIsObject(context, value) ?
|
wxJSStringRef js_value(JSValueIsObject(context, value) ?
|
||||||
|
Reference in New Issue
Block a user