[multimap] Add consts

This commit is contained in:
Behdad Esfahbod 2022-12-31 12:11:14 -07:00
parent 99da0e6cc3
commit ebb475bae7
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ struct hb_multimap_t
hb_array_t<const hb_codepoint_t> get (hb_codepoint_t k) const
{
hb_codepoint_t *v;
const hb_codepoint_t *v;
if (singulars.has (k, &v))
return hb_array (v, 1);
@ -73,7 +73,7 @@ struct hb_multimap_t
if (multiples_indices.has (k, &i))
return multiples_values[*i].as_array ();
return hb_array_t<hb_codepoint_t> ();
return hb_array_t<const hb_codepoint_t> ();
}
bool in_error () const