Fix try #2 at QSurface missing a virtual destructor

All virtual base classes with accessible destructor should declare
the destructor as virtual too.

Change-Id: I2b07c7e824612af072d7802095d958dca8cc34c8
Reviewed-on: http://codereview.qt.nokia.com/4274
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
bb10
Jani Uusi-Rantala 2011-09-06 16:21:56 +03:00 committed by Samuel Rødal
parent d130382776
commit 5234824e8f
2 changed files with 6 additions and 0 deletions

View File

@ -101,6 +101,10 @@ QWindow::~QWindow()
destroy();
}
QSurface::~QSurface()
{
}
void QWindow::setSurfaceType(SurfaceType surfaceType)
{
Q_D(QWindow);

View File

@ -81,6 +81,8 @@ public:
Window
};
virtual ~QSurface();
SurfaceType surfaceType() const { return m_type; }
virtual QSurfaceFormat format() const = 0;