Codechange: Replace FontMap's std::map with std::vector. (#13126)

This commit is contained in:
Peter Nelson
2024-11-27 12:36:56 +00:00
committed by GitHub
parent 8b8cd9ae2d
commit 23e252ad40
3 changed files with 6 additions and 6 deletions

View File

@@ -102,7 +102,7 @@ public:
/* Extract font information for this run. */
CFRange chars = CTRunGetStringRange(run);
auto map = fontMapping.upper_bound(chars.location);
auto map = std::ranges::upper_bound(fontMapping, chars.location, std::less{}, &std::pair<int, Font *>::first);
this->emplace_back(run, map->second, buff);
}