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.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> (cherry picked from commit ac399ca897bd0eb25dd004ce65a482f53551098d)
This commit is contained in:
parent
4994e92c09
commit
cfb884fe53
@ -194,6 +194,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