mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[vector] Minor write more idiomatic
This commit is contained in:
parent
cd8f7c0201
commit
f01ebe97b2
1 changed files with 2 additions and 5 deletions
|
@ -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…
Add table
Reference in a new issue