From 76d6758a8d6f5136d5eba63e787fbf27ed5450e5 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 22 Sep 2022 10:08:16 +0200 Subject: shiboken6/test: Fix warnings about implicitly generated assignment operators Fix warnings like: warning: implicitly-declared constexpr Pen& Pen::operator=(const Pen&) is deprecated [-Wdeprecated-copy] by removing definitions of copy constructors/assignment operators which are equivalent to the default generated ones or spell out the special methods were needed. Change-Id: Ie7cb335707f8bdd297b0ceea969909bc809016d7 Reviewed-by: Cristian Maureira-Fredes (cherry picked from commit f419206841764323c244bf91051b2878451c17b6) Reviewed-by: Qt Cherry-pick Bot --- sources/shiboken6/tests/libsample/pen.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sources/shiboken6/tests/libsample/pen.h') diff --git a/sources/shiboken6/tests/libsample/pen.h b/sources/shiboken6/tests/libsample/pen.h index 3e4fe5dd8..d66e5fd9e 100644 --- a/sources/shiboken6/tests/libsample/pen.h +++ b/sources/shiboken6/tests/libsample/pen.h @@ -74,7 +74,10 @@ public: Pen(); Pen(SampleNamespace::Option option); Pen(const Color& color); - Pen(const Pen& pen); + Pen(const Pen &pen); + Pen(Pen &&); + Pen &operator=(const Pen &pen); + Pen &operator=(Pen &&); // PYSIDE-1325, default initializer void drawLine(int x1, int y1, int x2, int y2, RenderHints renderHints = {}); -- cgit v1.2.3