mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
[vector] Remove a for loop
This commit is contained in:
1 parent
afd9a58bd7
commit
bc8eded296
1 file changed
+2
-1
+2
-1
@@ -232,9 +232,10 @@ struct hb_vector_t
|
||||
if (likely (new_array))
|
||||
{
|
||||
for (unsigned i = 0; i < length; i++)
|
||||
{
|
||||
new (std::addressof (new_array[i])) Type ();
|
||||
for (unsigned i = 0; i < (unsigned) length; i++)
|
||||
new_array[i] = std::move (arrayZ[i]);
|
||||
}
|
||||
unsigned old_length = length;
|
||||
shrink_vector (0);
|
||||
length = old_length;
|
||||
|
||||
Reference in new issue
Block a user