StreamStateSaver: disable copy/move

The class has a user-defined destructor, so it mustn't be copied or
moved (which here is the same as copying).

Amends 3c93286f08.

Pick-to: 6.7 6.6 6.5
Change-Id: I1b23588309654f34aedc0269e1d1c9511ddda2bb
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
bb10
Marc Mutz 2024-01-31 16:29:56 +01:00
parent 654f3c5634
commit 1b3c8d6e95
1 changed files with 1 additions and 0 deletions

View File

@ -241,6 +241,7 @@ namespace QtPrivate {
class StreamStateSaver
{
Q_DISABLE_COPY_MOVE(StreamStateSaver)
public:
inline StreamStateSaver(QDataStream *s) : stream(s), oldStatus(s->status())
{