summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2011-12-29 20:11:56 -0200
committerQt by Nokia <qt-info@nokia.com>2012-03-22 18:59:45 +0100
commit14068bcf9fe175d7827c2160a61f48e344b636cb (patch)
treedb2524418c9f741b89b92baed6f6e6c1ad0b8956 /src
parent79d0cae448da026d9f36430aa58ae65f759b1f4a (diff)
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 <samuel.rodal@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/gui/painting/qstroker.cpp4
-rw-r--r--src/gui/painting/qstroker_p.h1
2 files changed, 5 insertions, 0 deletions
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<qfixed> 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; }