QDebugStateSaver: port from QScopedPointer to unique_ptr

In preparation of adding QT_NO_SCOPED_POINTER, which would be rather
pointless for users if public headers continued to mention the type.

Pick-to: 6.8
Task-number: QTBUG-132213
Change-Id: Ib5a40a1b8defe1cfe858218bb25c422f900dfe6b
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit c5a4e3f790eb4157e33eac2402110f71a76a5418)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Marc Mutz 2024-05-13 13:26:49 +02:00 committed by Qt Cherry-pick Bot
parent cddddd753c
commit 2c4756af80

View File

@ -330,7 +330,7 @@ public:
~QDebugStateSaver(); ~QDebugStateSaver();
private: private:
Q_DISABLE_COPY(QDebugStateSaver) Q_DISABLE_COPY(QDebugStateSaver)
QScopedPointer<QDebugStateSaverPrivate> d; std::unique_ptr<QDebugStateSaverPrivate> d;
}; };
class QNoDebug class QNoDebug