mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-12-01 02:23:59 +01:00
[graph] Add a pre-alloc to map
This commit is contained in:
1 parent
d1ddfc4d10
commit
09706b04fc
1 file changed
+1
@@ -154,6 +154,7 @@ struct graph_t
|
||||
{
|
||||
hb_hashmap_t<unsigned, unsigned> result;
|
||||
|
||||
result.alloc (obj.real_links.length);
|
||||
for (const auto& l : obj.real_links) {
|
||||
result.set (l.position, l.objidx);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user