tst_exceptionsafety_objects: add virtual ~AbstractTester

GCC complained about undefined behaviour when
deleting subclasses of AbstractTester through
pointers to AbstractTester, and it's doing so
correctly...

Change-Id: Ie641281d8aafe32c5c9784e8aa39672ff0b699c7
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
This commit is contained in:
Marc Mutz 2012-03-06 12:14:51 +01:00 committed by Qt by Nokia
parent 7738f96f09
commit edea0e1917

View File

@ -94,6 +94,7 @@ void tst_ExceptionSafety_Objects::initTestCase()
// helper structs to create an arbitrary widget
struct AbstractTester
{
virtual ~AbstractTester() {}
virtual void operator()(QObject *parent) = 0;
};
Q_DECLARE_METATYPE(AbstractTester *)