summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRym Bouabid <[email protected]>2024-04-08 17:31:06 +0200
committerQt Cherry-pick Bot <[email protected]>2024-04-12 12:35:21 +0000
commita5048b1f82b278cc521a183e9c1ba8c2bcc43184 (patch)
tree8cffa41c0ec9bdb87f48727d6fba9fd5c17cbadb
parent57f25b705bf2e82e184bec8754b351bdcecc1035 (diff)
QCborMap::ConstIterator and Iterator: Add missing destructor
Axivion (SV403 and SV404) points out, based on rule of three, the lack of destructors for ConstIterator and Iterator. So add them. Task-number: QTBUG-122619 Change-Id: I4d4abf9be8be529492bf13069052ae4a8d8a90de Reviewed-by: Thiago Macieira <[email protected]> (cherry picked from commit b9cb2f30f1568e6cbf8e13d61501babcb90d46b2) Reviewed-by: Qt Cherry-pick Bot <[email protected]> (cherry picked from commit 61885e26e42b766a4db3d67e9b188e601ce8d830)
-rw-r--r--src/corelib/serialization/qcbormap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/serialization/qcbormap.h b/src/corelib/serialization/qcbormap.h
index ee9cc35631f..a32c1674e69 100644
--- a/src/corelib/serialization/qcbormap.h
+++ b/src/corelib/serialization/qcbormap.h
@@ -40,6 +40,7 @@ public:
constexpr Iterator() = default;
constexpr Iterator(const Iterator &) = default;
+ ~Iterator() = default;
Iterator &operator=(const Iterator &other)
{
// rebind the reference
@@ -100,6 +101,7 @@ public:
constexpr ConstIterator() = default;
constexpr ConstIterator(const ConstIterator &) = default;
+ ~ConstIterator() = default;
ConstIterator &operator=(const ConstIterator &other)
{
// rebind the reference