diff options
| author | Marc Mutz <marc.mutz@kdab.com> | 2019-06-26 21:40:27 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@kdab.com> | 2019-07-01 17:43:08 +0200 |
| commit | 7993cada3961cca417431a392fc047a3d7909657 (patch) | |
| tree | 3775e82e397cb414f89669b6a5673c8e23a28846 /src/gui/doc/snippets/textdocument-blocks/mainwindow.cpp | |
| parent | 2f672b223900e056ffa642d3186e6cdcac9152aa (diff) | |
QAccessibleWidget: fix UB (invalid cast)
Casting an object to a subclass that is not the dynamic type of the
object constitutes undefined behavior.
Fix by befriending QObject.
Change-Id: Ib70dbef9095df31a6d89449d82a02cef9fccd348
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-blocks/mainwindow.cpp')
0 files changed, 0 insertions, 0 deletions
