Define unused parameters differently to improve intellisense

This commit is contained in:
Tobias Taschner 2021-02-28 20:14:38 +01:00
parent 166d7e2c83
commit d4a9ec2448
No known key found for this signature in database
GPG Key ID: AE6ECD71294F87FD

View File

@ -190,11 +190,13 @@ public:
// Script
virtual bool RunScript(const wxString& javascript, wxString* output = NULL) const = 0;
virtual bool AddScriptMessageHandler(const wxString& WXUNUSED(name)) { return false; }
virtual bool RemoveScriptMessageHandler(const wxString& WXUNUSED(name)) { return false; }
virtual bool AddUserScript(const wxString& WXUNUSED(javascript),
wxWebViewUserScriptInjectionTime WXUNUSED(injectionTime) = wxWEBVIEW_INJECT_AT_DOCUMENT_START)
{ return false; }
virtual bool AddScriptMessageHandler(const wxString& name)
{ wxUnusedVar(name); return false; }
virtual bool RemoveScriptMessageHandler(const wxString& name)
{ wxUnusedVar(name); return false; }
virtual bool AddUserScript(const wxString& javascript,
wxWebViewUserScriptInjectionTime injectionTime = wxWEBVIEW_INJECT_AT_DOCUMENT_START)
{ wxUnusedVar(javascript); wxUnusedVar(injectionTime); return false; }
virtual void RemoveAllUserScripts() {}
virtual void SetEditable(bool enable = true) = 0;