[vector] Remove use of arrayZ() by using casts

pull/1519/head
Behdad Esfahbod 6 years ago
parent fa333e34d6
commit 71da9ca62f
  1. 2
      src/hb-ot-name-table.hh
  2. 2
      src/hb-ot-name.cc

@ -231,7 +231,7 @@ struct name
const hb_ot_name_entry_t key = {name_id, {0}, language};
const hb_ot_name_entry_t *entry = (const hb_ot_name_entry_t *)
hb_bsearch (&key,
this->names.arrayZ(),
(const hb_ot_name_entry_t *) this->names,
this->names.length,
sizeof (key),
_hb_ot_name_entry_cmp_key);

@ -60,7 +60,7 @@ hb_ot_name_list_names (hb_face_t *face,
{
const OT::name_accelerator_t &name = *face->table.name;
if (num_entries) *num_entries = name.names.length;
return name.names.arrayZ();
return (const hb_ot_name_entry_t *) name.names;
}

Loading…
Cancel
Save