From 43a176804fbfae86e3bccb7f1a84816d4ae9c7ff Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 6 Mar 2012 22:47:33 +0100 Subject: [PATCH] QPlatformSurface: add missing virtual dtor Change-Id: Ia7630cf33380badfe4ec7bdb59a9b86320257978 Reviewed-by: Gunnar Sletta --- src/gui/kernel/qplatformsurface_qpa.cpp | 2 ++ src/gui/kernel/qplatformsurface_qpa.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/gui/kernel/qplatformsurface_qpa.cpp b/src/gui/kernel/qplatformsurface_qpa.cpp index aeb73da2a3..5fd9c073fe 100644 --- a/src/gui/kernel/qplatformsurface_qpa.cpp +++ b/src/gui/kernel/qplatformsurface_qpa.cpp @@ -43,6 +43,8 @@ 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 646c3b72ce..80ee99c899 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;