summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-04-23 13:17:57 +0200
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-04-23 11:46:24 +0000
commitf6abc01c1daa05d19d1538ca1fae751c5e9b907e (patch)
treee7eff040326480fe101f52060356106512676d10 /src
parent7dffc4f49a80e1e641a3b04fdd5aee082be39e5f (diff)
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: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/activeqt/container/qaxscript.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/activeqt/container/qaxscript.cpp b/src/activeqt/container/qaxscript.cpp
index c1dfd34..01fbcc9 100644
--- a/src/activeqt/container/qaxscript.cpp
+++ b/src/activeqt/container/qaxscript.cpp
@@ -91,6 +91,7 @@ class QAxScriptSite : public IActiveScriptSite, public IActiveScriptSiteWindow
{
public:
QAxScriptSite(QAxScript *script);
+ virtual ~QAxScriptSite() {}
ULONG WINAPI AddRef();
ULONG WINAPI Release();