diff options
Diffstat (limited to 'sources/shiboken6/tests/libsample/objecttype.h')
-rw-r--r-- | sources/shiboken6/tests/libsample/objecttype.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sources/shiboken6/tests/libsample/objecttype.h b/sources/shiboken6/tests/libsample/objecttype.h index afd8a97a4..498556459 100644 --- a/sources/shiboken6/tests/libsample/objecttype.h +++ b/sources/shiboken6/tests/libsample/objecttype.h @@ -50,13 +50,13 @@ public: virtual ~ObjectType(); ObjectType(const ObjectType &) = delete; ObjectType &operator=(const ObjectType &) = delete; + ObjectType(ObjectType &&) noexcept; + ObjectType &operator=(ObjectType &&) noexcept; // factory method inline static ObjectType *create() { return new ObjectType(); } static ObjectType *createWithChild(); - static const ObjectType *defaultInstance(); - void setParent(ObjectType *parent); inline ObjectType *parent() const { return m_parent; } inline const ObjectTypeList &children() const { return m_children; } @@ -147,13 +147,17 @@ LIBSAMPLE_API unsigned int objectTypeHash(const ObjectType *objectType); class LIBSAMPLE_API OtherBase { public: - OtherBase() = default; + LIBMINIMAL_DISABLE_COPY_MOVE(OtherBase) + + OtherBase() noexcept = default; virtual ~OtherBase(); }; class LIBSAMPLE_API ObjectTypeDerived: public ObjectType, public OtherBase { public: - ObjectTypeDerived() = default; + LIBMINIMAL_DISABLE_COPY_MOVE(ObjectTypeDerived) + + ObjectTypeDerived() noexcept = default; bool event(Event *event) override; ~ObjectTypeDerived() override; |