summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qmdisubwindow_p.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2021-12-16 06:57:37 +0100
committerMarc Mutz <marc.mutz@qt.io>2021-12-16 09:12:57 +0100
commitb01c05ef9be3993013b8ac4e958d922c4e11f7ba (patch)
treed0f407f27a9a3daf595da04a0d6f68622f399e1e /src/widgets/widgets/qmdisubwindow_p.h
parenta663b566272baae6054c4d4568a8a655ad5c97f3 (diff)
QtWidgets: auto-test-export private classes, unbreaking ubsan builds
These classes are used in their respective tests, but since these only seem to access data members, the missing export macro was never detected. UBSan, however, checks the type_info on each access, so it needs the (polymorphic) class exported. Do so (for -developer-builds). Change-Id: I97b41cfb5dd7f1665cdf4f7a819a42fbf0388621 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/widgets/widgets/qmdisubwindow_p.h')
-rw-r--r--src/widgets/widgets/qmdisubwindow_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/widgets/qmdisubwindow_p.h b/src/widgets/widgets/qmdisubwindow_p.h
index 043cf92201..8b55cf34cc 100644
--- a/src/widgets/widgets/qmdisubwindow_p.h
+++ b/src/widgets/widgets/qmdisubwindow_p.h
@@ -121,7 +121,7 @@ private:
};
} // namespace QMdi
-class QMdiSubWindowPrivate : public QWidgetPrivate
+class Q_AUTOTEST_EXPORT QMdiSubWindowPrivate : public QWidgetPrivate
{
Q_DECLARE_PUBLIC(QMdiSubWindow)
public: