Use hb_len() instead of .len()
This commit is contained in:
parent
e28e2dad03
commit
8b533763c0
|
@ -504,7 +504,7 @@ struct UnsizedArrayOf
|
||||||
bool serialize (hb_serialize_context_t *c, Iterator items)
|
bool serialize (hb_serialize_context_t *c, Iterator items)
|
||||||
{
|
{
|
||||||
TRACE_SERIALIZE (this);
|
TRACE_SERIALIZE (this);
|
||||||
unsigned count = items.len ();
|
unsigned count = hb_len (items);
|
||||||
if (unlikely (!serialize (c, count, false))) return_trace (false);
|
if (unlikely (!serialize (c, count, false))) return_trace (false);
|
||||||
/* TODO Umm. Just exhaust the iterator instead? Being extra
|
/* TODO Umm. Just exhaust the iterator instead? Being extra
|
||||||
* cautious right now.. */
|
* cautious right now.. */
|
||||||
|
@ -678,7 +678,7 @@ struct ArrayOf
|
||||||
HB_NODISCARD bool serialize (hb_serialize_context_t *c, Iterator items)
|
HB_NODISCARD bool serialize (hb_serialize_context_t *c, Iterator items)
|
||||||
{
|
{
|
||||||
TRACE_SERIALIZE (this);
|
TRACE_SERIALIZE (this);
|
||||||
unsigned count = items.len ();
|
unsigned count = hb_len (items);
|
||||||
if (unlikely (!serialize (c, count, false))) return_trace (false);
|
if (unlikely (!serialize (c, count, false))) return_trace (false);
|
||||||
/* TODO Umm. Just exhaust the iterator instead? Being extra
|
/* TODO Umm. Just exhaust the iterator instead? Being extra
|
||||||
* cautious right now.. */
|
* cautious right now.. */
|
||||||
|
@ -840,7 +840,7 @@ struct HeadlessArrayOf
|
||||||
HB_NODISCARD bool serialize (hb_serialize_context_t *c, Iterator items)
|
HB_NODISCARD bool serialize (hb_serialize_context_t *c, Iterator items)
|
||||||
{
|
{
|
||||||
TRACE_SERIALIZE (this);
|
TRACE_SERIALIZE (this);
|
||||||
unsigned count = items.len ();
|
unsigned count = hb_len (items);
|
||||||
if (unlikely (!serialize (c, count, false))) return_trace (false);
|
if (unlikely (!serialize (c, count, false))) return_trace (false);
|
||||||
/* TODO Umm. Just exhaust the iterator instead? Being extra
|
/* TODO Umm. Just exhaust the iterator instead? Being extra
|
||||||
* cautious right now.. */
|
* cautious right now.. */
|
||||||
|
|
Loading…
Reference in New Issue