aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsmart
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/libsmart')
-rw-r--r--sources/shiboken6/tests/libsmart/smart.cpp6
-rw-r--r--sources/shiboken6/tests/libsmart/smart_integer.h3
2 files changed, 4 insertions, 5 deletions
diff --git a/sources/shiboken6/tests/libsmart/smart.cpp b/sources/shiboken6/tests/libsmart/smart.cpp
index 09e1274de..8b142a910 100644
--- a/sources/shiboken6/tests/libsmart/smart.cpp
+++ b/sources/shiboken6/tests/libsmart/smart.cpp
@@ -293,7 +293,5 @@ Smart::Integer2::Integer2()
{
}
-Smart::Integer2::Integer2(const Smart::Integer2 &other)
- : Integer (other)
-{
-}
+Smart::Integer2::Integer2(const Smart::Integer2 &) = default;
+Smart::Integer2 &Smart::Integer2::operator=(const Integer2 &) = default;
diff --git a/sources/shiboken6/tests/libsmart/smart_integer.h b/sources/shiboken6/tests/libsmart/smart_integer.h
index 0f2dfcec9..a9ee6b1c4 100644
--- a/sources/shiboken6/tests/libsmart/smart_integer.h
+++ b/sources/shiboken6/tests/libsmart/smart_integer.h
@@ -81,7 +81,8 @@ namespace Smart {
class LIB_SMART_API Integer2 : public Integer {
public:
Integer2();
- Integer2(const Integer2 &other);
+ Integer2(const Integer2 &);
+ Integer2 &operator=(const Integer2 &);
};
} // namespace Smart