From 96fe217467ee063cbadd8518694fb0313e78272f Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Wed, 14 Mar 2012 15:33:18 +0100 Subject: [PATCH] implement virtual destructor in QPlatformSurface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iaadd9c3cd7c2e2022066ca859cbe1e912050c561 Reviewed-by: Samuel Rødal --- src/gui/kernel/qplatformsurface_qpa.cpp | 5 +++++ src/gui/kernel/qplatformsurface_qpa.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/gui/kernel/qplatformsurface_qpa.cpp b/src/gui/kernel/qplatformsurface_qpa.cpp index aeb73da2a3..6d3b6503d7 100644 --- a/src/gui/kernel/qplatformsurface_qpa.cpp +++ b/src/gui/kernel/qplatformsurface_qpa.cpp @@ -43,6 +43,11 @@ QT_BEGIN_NAMESPACE +QPlatformSurface::~QPlatformSurface() +{ + +} + QSurface::SurfaceClass QPlatformSurface::surfaceClass() const { return m_type; diff --git a/src/gui/kernel/qplatformsurface_qpa.h b/src/gui/kernel/qplatformsurface_qpa.h index af23ad3a85..76d5c5465c 100644 --- a/src/gui/kernel/qplatformsurface_qpa.h +++ b/src/gui/kernel/qplatformsurface_qpa.h @@ -54,6 +54,7 @@ QT_BEGIN_NAMESPACE class Q_GUI_EXPORT QPlatformSurface { public: + virtual ~QPlatformSurface(); virtual QSurfaceFormat format() const = 0; QSurface::SurfaceClass surfaceClass() const;