diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2017-03-21 14:13:34 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2017-03-21 14:30:31 +0000 |
commit | 26bc4ac5cb56ce8f2d3d10125fa9c6a72140573a (patch) | |
tree | 999775166ad487836a28d4d7f6a3bc326805757c /src/src.pro | |
parent | 05924ddff901671063337f6e0e4bb84c915097ef (diff) |
QToolBox: fix potential UB (invalid cast) in Private::_q_widgetDestroyed()
Don't cast an expiring QObject down to QWidget. Cast the QWidgets stored
internally up to QObject to perform the comparison. The result is the
same, but no invalid casts are possible anymore.
Found by independent review.
Change-Id: Iffa8a66cf5cab0270961befe982637ac8e4f0f7b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/src.pro')
0 files changed, 0 insertions, 0 deletions