Skip to content

Commit e02d407

Browse files
committed
Fix MinGW C++ destructor warning
1 parent b51247a commit e02d407

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/webview/win32_wv2.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ class WebView2Instance {
9696
WebView2Instance* instance;
9797
public:
9898
TitleChangedHandler(WebView2Instance* inst) : refCount(1), instance(inst) {}
99+
virtual ~TitleChangedHandler() = default;
99100

100101
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** ppvObject) override {
101102
if (!ppvObject) return E_POINTER;
@@ -175,6 +176,7 @@ class WebView2Instance {
175176
WebView2Instance* instance;
176177
public:
177178
ControllerCompletedHandler(WebView2Instance* inst) : refCount(1), instance(inst) {}
179+
virtual ~ControllerCompletedHandler() = default;
178180

179181
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** ppvObject) override {
180182
if (!ppvObject) return E_POINTER;
@@ -251,6 +253,7 @@ class WebView2Instance {
251253
WebView2Instance* instance;
252254
public:
253255
EnvironmentCompletedHandler(WebView2Instance* inst) : refCount(1), instance(inst) {}
256+
virtual ~EnvironmentCompletedHandler() = default;
254257

255258
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** ppvObject) override {
256259
if (!ppvObject) return E_POINTER;

0 commit comments

Comments
 (0)