Add a non-implicit virtual destructor for QDashStroker
authorThiago Macieira <thiago.macieira@intel.com>
Thu, 29 Dec 2011 22:11:56 +0000 (20:11 -0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 22 Mar 2012 17:59:45 +0000 (18:59 +0100)
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 <samuel.rodal@nokia.com>
src/gui/painting/qstroker.cpp
src/gui/painting/qstroker_p.h

index 1201a48..c135adc 100644 (file)
@@ -1028,6 +1028,10 @@ QDashStroker::QDashStroker(QStroker *stroker)
     }
 }
 
+QDashStroker::~QDashStroker()
+{
+}
+
 QVector<qfixed> QDashStroker::patternForStyle(Qt::PenStyle style)
 {
     const qfixed space = 2;
index 30953d3..29d497e 100644 (file)
@@ -254,6 +254,7 @@ class Q_GUI_EXPORT QDashStroker : public QStrokerOps
 {
 public:
     QDashStroker(QStroker *stroker);
+    ~QDashStroker();
 
     QStroker *stroker() const { return m_stroker; }