aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/str.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-09-22 10:08:16 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-09-23 13:30:58 +0000
commit76d6758a8d6f5136d5eba63e787fbf27ed5450e5 (patch)
treee4cab494cf97c6ef25fcf9c22925cf722630c392 /sources/shiboken6/tests/libsample/str.cpp
parent6bc801c6a51915a7f1d4d0cefe64034121d0beab (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/str.cpp')
-rw-r--r--sources/shiboken6/tests/libsample/str.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/sources/shiboken6/tests/libsample/str.cpp b/sources/shiboken6/tests/libsample/str.cpp
index 0411569b2..5f1bc3b37 100644
--- a/sources/shiboken6/tests/libsample/str.cpp
+++ b/sources/shiboken6/tests/libsample/str.cpp
@@ -34,11 +34,6 @@
using namespace std;
-Str::Str(const Str& s)
-{
- init(s.cstring());
-}
-
Str::Str(char c)
{
char str[2] = { c, 0 };
@@ -57,10 +52,6 @@ Str::init(const char* cstr)
m_str = cstr;
}
-Str::~Str()
-{
-}
-
Str
Str::arg(const Str& s) const
{