summaryrefslogtreecommitdiffstats
path: root/examples/opengl/2dpainting/window.cpp
diff options
context:
space:
mode:
authorMarc Mutz <[email protected]>2025-06-25 08:46:10 +0200
committerMarc Mutz <[email protected]>2025-06-25 12:08:18 +0000
commitbc6f4c5db46e1d8263e32e02f2ca6e49d6b4082d (patch)
tree4f28f9816b562aa5063a9efacfdc399f8add1ad4 /examples/opengl/2dpainting/window.cpp
parentec0928c6c9a365007ac9f49dbc3c7059aa35af4e (diff)
QQuaternion: make a mutable function-static int[] constexprHEADdev
The array, despite being declared mutable, is never modified (and doing so would be a data race if threads concurrently call QQuaternion::fromRotationMatrix(), because it was declared static). Fix by making it constexpr instead. It need not be static, as the compiler will just optimize it away, anyway. Amends ba640a75a5cc9fec63a5204ccf143dbb7f398842. Pick-to: 6.10 6.9 6.8 6.5 Change-Id: I0a37f7718b1e79f34d8dd56dc56d951cb8a1d44c Reviewed-by: Friedemann Kleint <[email protected]>
Diffstat (limited to 'examples/opengl/2dpainting/window.cpp')
0 files changed, 0 insertions, 0 deletions