From b04a8a90f896309478ab9262768742050abce68a Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 13 Jun 2023 11:49:03 +0200 Subject: [PATCH] QMacAutoReleasePool: unexport MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We should not export non-polymorphic 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. Task-number: QTBUG-104164 Change-Id: I2e98782160cccb9c0f59a68e67ffd29fec42b728 Reviewed-by: Tor Arne Vestbø (cherry picked from commit 2a76cf81811c9406c75726d7743a28ec79fadb37) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/kernel/qcore_mac_p.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/corelib/kernel/qcore_mac_p.h b/src/corelib/kernel/qcore_mac_p.h index 016f07c1e23..3fd6e13df35 100644 --- a/src/corelib/kernel/qcore_mac_p.h +++ b/src/corelib/kernel/qcore_mac_p.h @@ -112,11 +112,11 @@ protected: T value; }; -class Q_CORE_EXPORT QMacAutoReleasePool +class QMacAutoReleasePool { public: - QMacAutoReleasePool(); - ~QMacAutoReleasePool(); + Q_CORE_EXPORT QMacAutoReleasePool(); + Q_CORE_EXPORT ~QMacAutoReleasePool(); private: Q_DISABLE_COPY(QMacAutoReleasePool) void *pool;