mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 00:59:16 +01:00
[vector] Minor write more idiomatic
This commit is contained in:
1 parent
cd8f7c0201
commit
f01ebe97b2
1 file changed
+2
-5
+2
-5
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user