[serialize] Use component_list by reference, as a supplier

This commit is contained in:
Behdad Esfahbod 2018-12-21 15:56:01 -05:00
parent 3dbe1e364c
commit 09740148e3
1 changed files with 1 additions and 3 deletions

View File

@ -841,7 +841,7 @@ struct LigatureSet
bool serialize (hb_serialize_context_t *c,
hb_array_t<const GlyphID> ligatures,
hb_array_t<const unsigned int> component_count_list,
hb_array_t<const GlyphID> component_list /* Starting from second for each ligature */)
hb_array_t<const GlyphID> &component_list /* Starting from second for each ligature */)
{
TRACE_SERIALIZE (this);
if (unlikely (!c->extend_min (*this))) return_trace (false);
@ -958,8 +958,6 @@ struct LigatureSubstFormat1
component_list))) return_trace (false);
ligatures_list += ligature_count;
component_count_list += ligature_count;
for (unsigned int i = 0; i < ligature_count; i++)
component_list += MAX<int> (component_count_list[i] - 1, 0);
}
return_trace (coverage.serialize (c, this).serialize (c, first_glyphs));
}