From 61885e26e42b766a4db3d67e9b188e601ce8d830 Mon Sep 17 00:00:00 2001 From: Rym Bouabid Date: Mon, 8 Apr 2024 17:31:06 +0200 Subject: [PATCH] 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 Pick-to: 6.5 Change-Id: I4d4abf9be8be529492bf13069052ae4a8d8a90de Reviewed-by: Thiago Macieira (cherry picked from commit b9cb2f30f1568e6cbf8e13d61501babcb90d46b2) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/serialization/qcbormap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/serialization/qcbormap.h b/src/corelib/serialization/qcbormap.h index f5a118d673b..d53fea004d2 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