summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qkeysequence.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2025-03-11 09:21:30 +0100
committerMarc Mutz <marc.mutz@qt.io>2025-03-12 04:04:56 +0100
commit67e9e2a7e2ee6a7687a5aa01214e70dffb6eb688 (patch)
tree31b881e2a74d5187b68ea7104b2d468245f17fd8 /src/gui/kernel/qkeysequence.cpp
parente62bebb263196bde5fa400f82f7ea72e39013a02 (diff)
QCssParser: shrink indexOfId by half
All offsets fit into [0:255], so use uchar instead of short to store them, cutting the storage requirement of the array in half (-86 bytes). As drive-bys - make the array constexpr - fix formatting (only in touched lines) - port from explicit to implicit bounds with explicit bounds checking The latter has the advantage that we don't get value-initialized elements appended silently, cf. 5d8f815e101da3ae9cd6a666cc097853f52b21da. Pick-to: 6.9 6.8 6.5 Change-Id: I336f850a586fd2fde8f62c65223f547402fbaa75 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/kernel/qkeysequence.cpp')
0 files changed, 0 insertions, 0 deletions