From 14068bcf9fe175d7827c2160a61f48e344b636cb Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 29 Dec 2011 20:11:56 -0200 Subject: Add a non-implicit virtual destructor for QDashStroker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The base class has a virtual destructor, so the destructor is already virtual. Make it non-implicit so that the virtual table and other virtual inline methods don't get emitted everywhere. Change-Id: I15296c1114086ff0b1da701ccd51525bec99d76b Reviewed-by: Samuel Rødal --- src/gui/painting/qstroker.cpp | 4 ++++ src/gui/painting/qstroker_p.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/gui/painting/qstroker.cpp b/src/gui/painting/qstroker.cpp index 1201a481b6..c135adc63f 100644 --- a/src/gui/painting/qstroker.cpp +++ b/src/gui/painting/qstroker.cpp @@ -1028,6 +1028,10 @@ QDashStroker::QDashStroker(QStroker *stroker) } } +QDashStroker::~QDashStroker() +{ +} + QVector QDashStroker::patternForStyle(Qt::PenStyle style) { const qfixed space = 2; diff --git a/src/gui/painting/qstroker_p.h b/src/gui/painting/qstroker_p.h index 30953d304b..29d497e90b 100644 --- a/src/gui/painting/qstroker_p.h +++ b/src/gui/painting/qstroker_p.h @@ -254,6 +254,7 @@ class Q_GUI_EXPORT QDashStroker : public QStrokerOps { public: QDashStroker(QStroker *stroker); + ~QDashStroker(); QStroker *stroker() const { return m_stroker; } -- cgit v1.2.3