aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/reference.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/libsample/reference.h')
-rw-r--r--sources/shiboken6/tests/libsample/reference.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/sources/shiboken6/tests/libsample/reference.h b/sources/shiboken6/tests/libsample/reference.h
index e21cb02d7..52818d9ea 100644
--- a/sources/shiboken6/tests/libsample/reference.h
+++ b/sources/shiboken6/tests/libsample/reference.h
@@ -9,7 +9,9 @@
class LIBSAMPLE_API Reference
{
public:
- explicit Reference(int objId = -1)
+ LIBMINIMAL_DEFAULT_COPY_MOVE(Reference)
+
+ explicit Reference(int objId = -1) noexcept
: m_objId(objId) {}
virtual ~Reference() = default;
@@ -45,8 +47,11 @@ private:
class LIBSAMPLE_API ObjTypeReference
{
public:
- ObjTypeReference() = default;
- ObjTypeReference(const ObjTypeReference &) {}
+ LIBMINIMAL_DISABLE_MOVE(ObjTypeReference)
+
+ ObjTypeReference() noexcept = default;
+ ObjTypeReference(const ObjTypeReference &) noexcept = default;
+ ObjTypeReference &operator=(const ObjTypeReference &) = delete;
virtual ~ObjTypeReference();
virtual ObjTypeReference &returnMyFirstArg(ObjTypeReference &ref) { return ref; }