src/ldtypes.h

changeset 564
79b23e02dcf1
parent 560
39085791128f
child 583
4906c5c1670f
equal deleted inserted replaced
563:10939452bf86 564:79b23e02dcf1
22 #include "main.h" 22 #include "main.h"
23 #include "types.h" 23 #include "types.h"
24 24
25 #define LDOBJ(T) \ 25 #define LDOBJ(T) \
26 protected: \ 26 protected: \
27 virtual ~LD##T() {} \
28 virtual LD##T* clone() override { \ 27 virtual LD##T* clone() override { \
29 return new LD##T (*this); \ 28 return new LD##T (*this); \
30 } \ 29 } \
31 public: \ 30 public: \
32 virtual LDObject::Type getType() const override { \ 31 virtual LDObject::Type getType() const override { \
396 } 395 }
397 396
398 // Inlines this subfile. Note that return type is an array of heap-allocated 397 // Inlines this subfile. Note that return type is an array of heap-allocated
399 // LDObject copies, they must be deleted manually. 398 // LDObject copies, they must be deleted manually.
400 QList<LDObject*> inlineContents (InlineFlags flags); 399 QList<LDObject*> inlineContents (InlineFlags flags);
400
401 protected:
402 ~LDSubfile();
401 }; 403 };
402 404
403 Q_DECLARE_OPERATORS_FOR_FLAGS (LDSubfile::InlineFlags) 405 Q_DECLARE_OPERATORS_FOR_FLAGS (LDSubfile::InlineFlags)
404 406
405 // ============================================================================= 407 // =============================================================================

mercurial