Remove redundant check for m_webView in wxOSX code
wxCHECK_MSG() is enough, there is really no need to check for the same condition twice, this is just confusing.
This commit is contained in:
parent
74e60b39f8
commit
9884b0b4ea
@ -411,12 +411,8 @@ wxString wxWebViewWebKit::GetSelectedText() const
|
||||
|
||||
bool wxWebViewWebKit::RunScript(const wxString& javascript, wxString* output)
|
||||
{
|
||||
if ( !m_webView )
|
||||
{
|
||||
wxCHECK_MSG( m_webView, false,
|
||||
wxS("wxWebView must be created before running JS scripts") );
|
||||
return false;
|
||||
}
|
||||
wxS("wxWebView must be created before calling RunScript()") );
|
||||
|
||||
wxJSScriptWrapper wrapJS(javascript, &m_runScriptCount);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user