mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-30 01:54:21 +01:00
[map] Add TODO item
This commit is contained in:
1 parent
fc5739ea90
commit
de33ef61b7
1 file changed
+1
@@ -242,6 +242,7 @@ struct hb_hashmap_t
|
||||
uint32_t hash () const
|
||||
{
|
||||
uint32_t h = 0;
|
||||
/* TODO: Speed-up since we have the hash of the key already in the item. */
|
||||
for (auto pair : iter ())
|
||||
h ^= (hb_hash (pair.first) * 31) + hb_hash (pair.second);
|
||||
return h;
|
||||
|
||||
Reference in new issue
Block a user