diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-09-22 10:08:16 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-09-23 13:30:58 +0000 |
commit | 76d6758a8d6f5136d5eba63e787fbf27ed5450e5 (patch) | |
tree | e4cab494cf97c6ef25fcf9c22925cf722630c392 /sources/shiboken6/tests/libsample/pen.h | |
parent | 6bc801c6a51915a7f1d4d0cefe64034121d0beab (diff) |
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 <cristian.maureira-fredes@qt.io>
(cherry picked from commit f419206841764323c244bf91051b2878451c17b6)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'sources/shiboken6/tests/libsample/pen.h')
-rw-r--r-- | sources/shiboken6/tests/libsample/pen.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 = {}); |