diff -r 10939452bf86 -r 79b23e02dcf1 src/ldtypes.h --- a/src/ldtypes.h Wed Dec 18 23:38:45 2013 +0200 +++ b/src/ldtypes.h Thu Dec 19 00:59:49 2013 +0200 @@ -24,7 +24,6 @@ #define LDOBJ(T) \ protected: \ - virtual ~LD##T() {} \ virtual LD##T* clone() override { \ return new LD##T (*this); \ } \ @@ -398,6 +397,9 @@ // Inlines this subfile. Note that return type is an array of heap-allocated // LDObject copies, they must be deleted manually. QList inlineContents (InlineFlags flags); + + protected: + ~LDSubfile(); }; Q_DECLARE_OPERATORS_FOR_FLAGS (LDSubfile::InlineFlags)