Initialize syncScriptResult and remove unused parameter
This commit is contained in:
@@ -139,6 +139,7 @@ public:
|
||||
{
|
||||
m_showMenu = true;
|
||||
m_runScriptCount = 0;
|
||||
m_syncScriptResult = 0;
|
||||
}
|
||||
|
||||
virtual ~wxWebView() {}
|
||||
|
@@ -229,7 +229,7 @@ bool wxWebView::RunScript(const wxString& javascript, wxString* output) const
|
||||
{
|
||||
m_syncScriptResult = -1;
|
||||
m_syncScriptOutput.clear();
|
||||
RunScriptAsync(javascript, (void*)this);
|
||||
RunScriptAsync(javascript);
|
||||
|
||||
// Wait for script exection
|
||||
while (m_syncScriptResult == -1)
|
||||
|
Reference in New Issue
Block a user