diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-02-25 16:58:27 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-03-03 10:00:22 +0100 |
commit | 98db99657649d4668c766eaa36b8d29c58d19754 (patch) | |
tree | aef586eda9a58453472e51b66ff36dc52f63b320 /examples | |
parent | b1ad7f938e2f71288e65a8c9a86b732b89a6a345 (diff) |
Add nullptr checks to QGraphicsView classes
The styleInfo parameter defaults to nullptr, and the scene can evidently
be nullptr since we test for it before ungrabbing the mouse.
Fixes static analyzer warnings
fbd03604cc701651595a2ea33c5562b4 and
30fcb05194f3a2d121fc57b05e0ccf10
Pick-to: 6.1
Change-Id: I8e9d4fe4055115c366ada1cbb22a8f0839ba41da
Reviewed-by: David Skoland <david.skoland@qt.io>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions