mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 01:00:37 +00:00
[map] Micro-optimize destruction
This commit is contained in:
parent
d9357a1a67
commit
e7879d6c55
1 changed files with 3 additions and 2 deletions
|
@ -211,9 +211,10 @@ struct hb_hashmap_t
|
|||
old_items[i].hash,
|
||||
std::move (old_items[i].value));
|
||||
}
|
||||
if (!item_t::is_trivial)
|
||||
old_items[i].~item_t ();
|
||||
}
|
||||
if (!item_t::is_trivial)
|
||||
for (unsigned int i = 0; i < old_size; i++)
|
||||
old_items[i].~item_t ();
|
||||
|
||||
hb_free (old_items);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue