diff options
Diffstat (limited to 'sources/shiboken6/tests/libsample/echo.h')
-rw-r--r-- | sources/shiboken6/tests/libsample/echo.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sources/shiboken6/tests/libsample/echo.h b/sources/shiboken6/tests/libsample/echo.h index 54db3e9bd..01b11a4a6 100644 --- a/sources/shiboken6/tests/libsample/echo.h +++ b/sources/shiboken6/tests/libsample/echo.h @@ -12,19 +12,21 @@ class ObjectType; class Echo { public: - Echo(){} - ~Echo(){} + LIBMINIMAL_DEFAULT_COPY_MOVE(Echo) + + Echo() noexcept = default; + ~Echo() = default; void doNothingWithConstBool(const bool hi); - void methodWithNamedArg(const Str& string = Str("")); + void methodWithNamedArg(const Str &string = Str{}); - Str operator()(const Str& s, const int i) { return s + i; } + Str operator()(const Str &s, const int i) { return s + i; } // These method are here just for compilation test purposes - Echo& operator<<(unsigned int item); - Echo& operator<<(signed int item); - Echo& operator<<(const ObjectType *item); - Echo& operator<<(Str str); + Echo &operator<<(unsigned int item); + Echo &operator<<(signed int item); + Echo &operator<<(const ObjectType *item); + Echo &operator<<(Str str); }; inline void Echo::doNothingWithConstBool(const bool) |