mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[vector] Simplify a method
This commit is contained in:
parent
6fe550306c
commit
46485124ea
1 changed files with 1 additions and 4 deletions
|
@ -55,10 +55,7 @@ struct hb_vector_t
|
|||
hb_requires (hb_is_iterable (Iterable))>
|
||||
hb_vector_t (const Iterable &o) : hb_vector_t ()
|
||||
{
|
||||
auto iter = hb_iter (o);
|
||||
if (iter.is_random_access_iterator || iter.has_fast_len)
|
||||
alloc (hb_len (iter), true);
|
||||
hb_copy (iter, *this);
|
||||
extend (o);
|
||||
}
|
||||
template <typename Iterable,
|
||||
hb_requires (hb_is_iterable (Iterable))>
|
||||
|
|
Loading…
Add table
Reference in a new issue