Create wxWebViewEdge implementation in constructor

This helps with various potential error when using two step creation
This commit is contained in:
Tobias Taschner
2021-03-16 22:09:55 +01:00
parent 7f7191066b
commit 3d568c7105
2 changed files with 22 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ class WXDLLIMPEXP_WEBVIEW wxWebViewEdge : public wxWebView
{
public:
wxWebViewEdge() {}
wxWebViewEdge();
wxWebViewEdge(wxWindow* parent,
wxWindowID id,
@@ -31,10 +31,7 @@ public:
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxString& name = wxWebViewNameStr)
{
Create(parent, id, url, pos, size, style, name);
}
const wxString& name = wxWebViewNameStr);
~wxWebViewEdge();