From 7308af8ca74c077f1797f945cb6ec54290f63ef5 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 12 Oct 2013 23:09:19 +0200 Subject: [PATCH] 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 Reviewed-by: Friedemann Kleint --- src/widgets/graphicsview/qsimplex_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/graphicsview/qsimplex_p.h b/src/widgets/graphicsview/qsimplex_p.h index dfbca409b9a..3fa3417eaf1 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();