From 8b67e2381a65ee195de5832b270b7f1138f4084a Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 13 Jun 2023 11:49:03 +0200 Subject: [PATCH] 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. Change-Id: I204d703498bf42465ea122d1f31c443ea439bd6e Reviewed-by: Thiago Macieira (cherry picked from commit ba501285b5156c0562282a950008c6aa45b9ce9f) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/io/qdebug.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/corelib/io/qdebug.h b/src/corelib/io/qdebug.h index 3fa9c420525..357fc6cf7f6 100644 --- a/src/corelib/io/qdebug.h +++ b/src/corelib/io/qdebug.h @@ -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)