From acb9633efa7e89fe5343da36f878a39b6095d92f Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 12 Apr 2022 09:31:39 +0200 Subject: [PATCH] QXmlStreamSimpleStack: disable copy and move SMFs Clazy complained that the class has a dtor, but no copy ctor. Pick-to: 6.3 Change-Id: Ida4024df1ff22c7758b8efa6e9383e03734720a8 Reviewed-by: Giuseppe D'Angelo --- src/corelib/serialization/qxmlstream_p.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/serialization/qxmlstream_p.h b/src/corelib/serialization/qxmlstream_p.h index 2194fd1143..8713b322d4 100644 --- a/src/corelib/serialization/qxmlstream_p.h +++ b/src/corelib/serialization/qxmlstream_p.h @@ -127,6 +127,8 @@ using namespace QtPrivate; template class QXmlStreamSimpleStack { + Q_DISABLE_COPY_MOVE(QXmlStreamSimpleStack) + T *data; qsizetype tos, cap; public: