diff options
Diffstat (limited to 'sources/shiboken6/tests/libsample/complex.h')
-rw-r--r-- | sources/shiboken6/tests/libsample/complex.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sources/shiboken6/tests/libsample/complex.h b/sources/shiboken6/tests/libsample/complex.h index 54fb99ed1..168fe5c44 100644 --- a/sources/shiboken6/tests/libsample/complex.h +++ b/sources/shiboken6/tests/libsample/complex.h @@ -9,17 +9,19 @@ class LIBSAMPLE_API Complex { public: - Complex(double real = 0.0, double imag = 0.0); - ~Complex() {} + LIBMINIMAL_DEFAULT_COPY_MOVE(Complex) + + explicit Complex(double real = 0.0, double imag = 0.0) noexcept; + ~Complex() = default; inline double real() const { return m_real; } inline void setReal(double real) { m_real = real; } inline double imag() const { return m_imag; } inline void setImaginary(double imag) { m_imag = imag; } - Complex operator+(Complex& other); + Complex operator+(const Complex &other); - void show(); + void show() const; private: double m_real; |