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/bytearray.cpp | |
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/bytearray.cpp')
-rw-r--r-- | sources/shiboken6/tests/libsample/bytearray.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sources/shiboken6/tests/libsample/bytearray.cpp b/sources/shiboken6/tests/libsample/bytearray.cpp index 021d2a079..ee1e1ca93 100644 --- a/sources/shiboken6/tests/libsample/bytearray.cpp +++ b/sources/shiboken6/tests/libsample/bytearray.cpp @@ -57,13 +57,6 @@ ByteArray::ByteArray(const char* data, int len) m_data[len] = '\0'; } -ByteArray::ByteArray(const ByteArray& other) -{ - m_data = std::vector<char>(other.size() + 1); - memcpy(&m_data[0], &other.m_data[0], other.size()); - m_data[other.size()] = '\0'; -} - int ByteArray::size() const { |