mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
[vector] Add std::move to pop()
This was removed in 76fc27713f,
but I believe that was faultly. It was because of a bad move
implementation in the set.
This commit is contained in:
1 parent
921f45f46d
commit
2892fc71e8
1 file changed
+1
-1
+1
-1
@@ -364,7 +364,7 @@ struct hb_vector_t
|
||||
Type pop ()
|
||||
{
|
||||
if (!length) return Null (Type);
|
||||
Type v = arrayZ[length - 1];
|
||||
Type v {std::move (arrayZ[length - 1])};
|
||||
arrayZ[length - 1].~Type ();
|
||||
length--;
|
||||
return v;
|
||||
|
||||
Reference in new issue
Block a user