diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-03-17 15:26:11 +0100 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-03-19 14:26:03 +0100 |
| commit | 7edf0fbb9e8cca2e2f2695a1b5dc7a0a143bc211 (patch) | |
| tree | ae43c7203a5c9a5c8e40f0236faf6d222124a7f5 /src/widgets/doc/snippets/mainwindowsnippet.cpp | |
| parent | 98e4652a964be954f364abd8a1872ea92b7bd387 (diff) | |
Consistently check for nullptr in QGraphicsTextItem::inputMethodQuery
If dd->control is nullptr, then it's nullptr all the way, so don't
dereference it in the calls to dd->controlOffset.
Fixes static analyzer warning 9c33d9bc9b8cf438dccb63aa52afcbe0.
Pick-to: 6.1 6.0 5.15
Change-Id: I7a61b6438422373678d4fcb66255b750c550724d
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/mainwindowsnippet.cpp')
0 files changed, 0 insertions, 0 deletions
