[vector] Minor write more idiomatic

pull/4269/head
Behdad Esfahbod 1 year ago
parent cd8f7c0201
commit f01ebe97b2
  1. 7
      src/hb-vector.hh

@ -295,11 +295,8 @@ struct hb_vector_t
void
grow_vector (unsigned size)
{
while (length < size)
{
length++;
new (std::addressof (arrayZ[length - 1])) Type ();
}
for (; length < size; length++)
new (std::addressof (arrayZ[length])) Type ();
}
template <typename T = Type,

Loading…
Cancel
Save