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 3c93286f08a80b6e1821d7d63d361742b25c6578. Pick-to: 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> (cherry picked from commit 1b3c8d6e95a81d307a9f7bb556aabcf7fea04588) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
907497b87d
commit
ac399ca897
@ -240,6 +240,7 @@ namespace QtPrivate {
|
||||
|
||||
class StreamStateSaver
|
||||
{
|
||||
Q_DISABLE_COPY_MOVE(StreamStateSaver)
|
||||
public:
|
||||
inline StreamStateSaver(QDataStream *s) : stream(s), oldStatus(s->status())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user