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:
@@ -411,12 +411,8 @@ wxString wxWebViewWebKit::GetSelectedText() const
|
|||||||
|
|
||||||
bool wxWebViewWebKit::RunScript(const wxString& javascript, wxString* output)
|
bool wxWebViewWebKit::RunScript(const wxString& javascript, wxString* output)
|
||||||
{
|
{
|
||||||
if ( !m_webView )
|
|
||||||
{
|
|
||||||
wxCHECK_MSG( m_webView, false,
|
wxCHECK_MSG( m_webView, false,
|
||||||
wxS("wxWebView must be created before running JS scripts") );
|
wxS("wxWebView must be created before calling RunScript()") );
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
wxJSScriptWrapper wrapJS(javascript, &m_runScriptCount);
|
wxJSScriptWrapper wrapJS(javascript, &m_runScriptCount);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user