diff options
| author | Aurélien Brooke <[email protected]> | 2025-09-23 14:05:22 +0200 |
|---|---|---|
| committer | Aurélien Brooke <[email protected]> | 2025-11-04 20:15:01 +0200 |
| commit | ed608dea3547664809f9899b90cad77be77efff3 (patch) | |
| tree | 239c7219ae50ed76d3908ef03c4da8ac7ab64027 /src/plugins/platforms/wasm/qwasmaccessibility.cpp | |
| parent | 8209078e0eb1f100f0f822d75856c9f557f60195 (diff) | |
QTextEngine: avoid an unnecessary temporary QHash
Build the HarfBuzz feature list directly without a temporary QHash.
Use a small flat map with inline storage to keep features contiguous
and pass features.values() straight to hb_shape_full(), avoiding
extra allocations.
Note that QHash::insert has insert_or_assign semantics while
QFlatMap::insert is try_emplace. We therefore insert fontFeatures first
so that user-provided values take precedence over defaults.
Change-Id: I4393f55a6c397be59e638be41e4f0ea27aaee1f9
Reviewed-by: Volker Hilsheimer <[email protected]>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmaccessibility.cpp')
0 files changed, 0 insertions, 0 deletions
