Commit f6abc01c authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Add virtual destructor to QAxScriptSite.


Silence warning by MinGW:
qtactiveqt\src\activeqt\container\qaxscript.cpp:143: warning: deleting object of polymorphic class type 'QAxScriptSite' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor]

Task-number: QTBUG-45022
Change-Id: I5f221a953e44c3977ba633b999223fd4aa014666
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@theqtcompany.com>
parent 7dffc4f4
No related merge requests found
Showing with 1 addition and 0 deletions
...@@ -91,6 +91,7 @@ class QAxScriptSite : public IActiveScriptSite, public IActiveScriptSiteWindow ...@@ -91,6 +91,7 @@ class QAxScriptSite : public IActiveScriptSite, public IActiveScriptSiteWindow
{ {
public: public:
QAxScriptSite(QAxScript *script); QAxScriptSite(QAxScript *script);
virtual ~QAxScriptSite() {}
ULONG WINAPI AddRef(); ULONG WINAPI AddRef();
ULONG WINAPI Release(); ULONG WINAPI Release();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment