From 0f1a569cb628017b20b5b9af3e790d5e44271abb Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 28 Dec 2024 18:26:13 +0100 Subject: [PATCH] tst_Q(Gui)EventLoop: Unbreak UBSan build The tests peek into QEventLoopPrivate, which means that a UBSan build needs access to QEventLoopPrivate's type_info, for which we need to export the class. Amends 3af20bd8eb8c75017c5d6d138d7c42914ee5bee3, which fixed the weak vtable that, presumably, made this test work before. Change-Id: I4104ba95093fa240c5ef7d9d5bf287c1652333f0 Reviewed-by: Thiago Macieira Reviewed-by: Alexey Edelev (cherry picked from commit 8bf54385319df958ea88f9998e7690d4c35e354d) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit c9709094377ca8a5f419e49996ce0091b95a6141) --- src/corelib/kernel/qeventloop_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/kernel/qeventloop_p.h b/src/corelib/kernel/qeventloop_p.h index cb00fba41fc..1461188e9fd 100644 --- a/src/corelib/kernel/qeventloop_p.h +++ b/src/corelib/kernel/qeventloop_p.h @@ -20,7 +20,7 @@ QT_BEGIN_NAMESPACE -class QEventLoopPrivate : public QObjectPrivate +class Q_AUTOTEST_EXPORT QEventLoopPrivate : public QObjectPrivate { Q_DECLARE_PUBLIC(QEventLoop) public: