From 1d41b9cb3c5078f4d0dd5b693e611ac8724ec91d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 17 Nov 2022 16:26:48 -0700 Subject: [PATCH] [user-data] std::move item --- src/hb-object.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-object.hh b/src/hb-object.hh index 9876c2923..d7bcb61bd 100644 --- a/src/hb-object.hh +++ b/src/hb-object.hh @@ -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 ();