diff options
Diffstat (limited to 'sources/shiboken6/tests/libsample/point.h')
-rw-r--r-- | sources/shiboken6/tests/libsample/point.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sources/shiboken6/tests/libsample/point.h b/sources/shiboken6/tests/libsample/point.h index 52a9b1bf3..7e5d128ab 100644 --- a/sources/shiboken6/tests/libsample/point.h +++ b/sources/shiboken6/tests/libsample/point.h @@ -12,8 +12,10 @@ class LIBSAMPLE_API Point { public: - Point(int x = 0, int y = 0); - Point(double x, double y); + LIBMINIMAL_DEFAULT_COPY_MOVE(Point) + + Point(int x = 0, int y = 0) noexcept; + Point(double x, double y) noexcept; ~Point() = default; inline double x() const { return m_x; } @@ -36,7 +38,7 @@ public: // The != operator is not implemented for the purpose of testing // for the absense of the __ne__ method in the Python binding. - bool operator==(const Point &other); + bool operator==(const Point &other) const; Point operator+(const Point &other); Point operator-(const Point &other); |