diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2023-05-31 09:58:44 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2023-05-31 14:37:20 +0000 |
| commit | 3a7ddd7274d93012a57fbe2e47185d921b7a66d1 (patch) | |
| tree | c3622e2fba35868635739574f4c0c14bd71bcb83 /examples/opengl/openglwindow/openglwindow.h | |
| parent | 496bd9e9755f4636aa4086af7942feee023ff780 (diff) | |
QVariant: simplify condition guarding customClear() calls
Due to short-cut evaluation of the built-in op||, we can do the
following transformation:
- (X && Y) || !X
+ !X || Y
Pick-to: 6.5
Change-Id: Ia5ae1dd60bdb663aa4648c09372be1598591110d
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'examples/opengl/openglwindow/openglwindow.h')
0 files changed, 0 insertions, 0 deletions
