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:
parent
7738f96f09
commit
edea0e1917
@ -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 *)
|
||||
|
Loading…
Reference in New Issue
Block a user