From: Thiago Macieira Date: Thu, 29 Dec 2011 22:11:56 +0000 (-0200) Subject: Add a non-implicit virtual destructor for QDashStroker X-Git-Tag: qt-v5.0.0-alpha1~123 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14068bcf9fe175d7827c2160a61f48e344b636cb;p=profile%2Fivi%2Fqtbase.git Add a non-implicit virtual destructor for QDashStroker 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 --- diff --git a/src/gui/painting/qstroker.cpp b/src/gui/painting/qstroker.cpp index 1201a48..c135adc 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 30953d3..29d497e 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; }