QDebugStateSaver: unexport

We should not export non-polymorophic classes wholesale. Only export
the non-inline functions instead.

There are no implicitly-declared special member functions in this
class that could cause problems, so we don't need to delay until Qt 7.

Pick-to: 6.6
Change-Id: I204d703498bf42465ea122d1f31c443ea439bd6e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Marc Mutz 2023-06-13 11:49:03 +02:00
parent 2bd8e63690
commit ba501285b5

View File

@ -211,10 +211,12 @@ public:
Q_DECLARE_SHARED(QDebug)
class QDebugStateSaverPrivate;
class Q_CORE_EXPORT QDebugStateSaver
class QDebugStateSaver
{
public:
Q_CORE_EXPORT
QDebugStateSaver(QDebug &dbg);
Q_CORE_EXPORT
~QDebugStateSaver();
private:
Q_DISABLE_COPY(QDebugStateSaver)