From 6f6207fadc1a334d1aed98f840a0d074acf18d06 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 14 May 2016 08:52:45 +0200 Subject: De-inline dtors of public polymorphic classes By making the destructor (usually the first non-inline, non-pure, virtual function, and therefore the trigger for most compilers to emit the vtable and type_info structures for the class in that TU) out-of-line, vtables and, more importantly, type_info structures for the class are pinned to a single TU. This prevents false negative dynamic_cast and catch evaluation. It also allows to add code to them later, if necessary. Change-Id: I0da301cd788162abba6cdbbb21910090a22adb9a Reviewed-by: Sean Harmer --- src/render/renderstates/qcullface.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/render/renderstates/qcullface.cpp') diff --git a/src/render/renderstates/qcullface.cpp b/src/render/renderstates/qcullface.cpp index cebb55761..6406da91c 100644 --- a/src/render/renderstates/qcullface.cpp +++ b/src/render/renderstates/qcullface.cpp @@ -51,6 +51,11 @@ QCullFace::QCullFace(QNode *parent) { } +/*! \internal */ +QCullFace::~QCullFace() +{ +} + QCullFace::CullingMode QCullFace::mode() const { Q_D(const QCullFace); -- cgit v1.2.3