summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasmevent.h
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2023-02-02 01:34:08 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2023-02-07 18:59:59 +0100
commit62be4ab5be41b09eea16e5675ed4a74c795e58d9 (patch)
tree8f55e1c8dd1972a3ae1c0364049bb0d57259c389 /src/plugins/platforms/wasm/qwasmevent.h
parent3d72e8829fb9ebcd3b1179b54ad4053de05368ff (diff)
XCB: simplify atom registration code
There's no need of calculating offsets into the \0-separated string of atom names; since we're going to iterate that string exactly once, do that, and register the corresponding atom name as we iterate. (This means that solutions that calculate the offsets at compile-time, like qOffsetStringArray, are also overkill for the use case). Change-Id: I71ed512dee4f2a8bfb99ca2392efbd8a07f2a7c1 Reviewed-by: JiDe Zhang <zhangjide@uniontech.com> Reviewed-by: Liang Qi <liang.qi@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmevent.h')
0 files changed, 0 insertions, 0 deletions