[user-data] std::move item

This commit is contained in:
Behdad Esfahbod 2022-11-17 16:26:48 -07:00
parent ff0bb74895
commit 1d41b9cb3c
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ struct hb_lockable_set_t
if (item)
{
item_t old = *item;
*item = items[items.length - 1];
*item = std::move (items[items.length - 1]);
items.pop ();
l.unlock ();
old.fini ();