summaryrefslogtreecommitdiffstats
path: root/src/widgets/graphicsview/qsimplex_p.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2013-10-12 23:09:19 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-28 23:13:14 +0100
commit7308af8ca74c077f1797f945cb6ec54290f63ef5 (patch)
tree0dddd1184e2098d586ee7f615f9ac3f972282300 /src/widgets/graphicsview/qsimplex_p.h
parent5d9cddd24cca5fae70abf06663992d63a32c7cac (diff)
QSimplex: make non-polymorphic
This class is never inherited from, so save the vtable, and everything that goes with it (typeinfo, ...). Effects on Linux AMD64 GCC 4.9-trunk release stripped: text: -248B data: -64B relocs: -5 Change-Id: I12eec1115529eb3fc873fb9a9aacc150d9937fb9 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/widgets/graphicsview/qsimplex_p.h')
-rw-r--r--src/widgets/graphicsview/qsimplex_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/graphicsview/qsimplex_p.h b/src/widgets/graphicsview/qsimplex_p.h
index dfbca409b9..3fa3417eaf 100644
--- a/src/widgets/graphicsview/qsimplex_p.h
+++ b/src/widgets/graphicsview/qsimplex_p.h
@@ -152,7 +152,7 @@ class QSimplex
Q_DISABLE_COPY(QSimplex)
public:
QSimplex();
- virtual ~QSimplex();
+ ~QSimplex();
qreal solveMin();
qreal solveMax();