Make wxWebView::RunScript() const

This commit is contained in:
Tobias Taschner
2021-02-05 22:17:35 +01:00
parent e88b55bfe1
commit d17e8978a6
12 changed files with 24 additions and 24 deletions

View File

@@ -181,7 +181,7 @@ public:
virtual void Print() = 0;
virtual void RegisterHandler(wxSharedPtr<wxWebViewHandler> handler) = 0;
virtual void Reload(wxWebViewReloadFlags flags = wxWEBVIEW_RELOAD_DEFAULT) = 0;
virtual bool RunScript(const wxString& javascript, wxString* output = NULL) = 0;
virtual bool RunScript(const wxString& javascript, wxString* output = NULL) const = 0;
virtual void SetEditable(bool enable = true) = 0;
void SetPage(const wxString& html, const wxString& baseUrl)
{
@@ -250,7 +250,7 @@ protected:
// Count the number of calls to RunScript() in order to prevent
// the_same variable from being used twice in more than one call.
int m_runScriptCount;
mutable int m_runScriptCount;
private:
static void InitFactoryMap();