Give QWindowsNativeFileDialogEventHandler a virtual destructor

GCC complains about this class having virtuals and no virtual destructor.

C:/Qt/qt5/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp:750:20: warning: deleting object of polymorphic class type 'QWindowsNativeFileDialogEventHandler' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]

Change-Id: I7494fce4bb71ed65954226259fa65fdc507ca403
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
bb10
Thiago Macieira 2013-08-30 17:14:40 -07:00 committed by The Qt Project
parent 5bf16380d2
commit e82c7a8abf
1 changed files with 1 additions and 1 deletions

View File

@ -763,7 +763,7 @@ public:
QWindowsNativeFileDialogEventHandler(QWindowsNativeFileDialogBase *nativeFileDialog) :
m_ref(1), m_nativeFileDialog(nativeFileDialog) {}
~QWindowsNativeFileDialogEventHandler() {}
virtual ~QWindowsNativeFileDialogEventHandler() {}
private:
long m_ref;