From 6ec7629fba96f8be175eac108f7eee83de6cae21 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 1 Jun 2023 18:18:30 -0600 Subject: [PATCH] [subset/glyf] Add a const --- src/OT/glyf/SubsetGlyph.hh | 2 +- src/OT/glyf/glyf.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OT/glyf/SubsetGlyph.hh b/src/OT/glyf/SubsetGlyph.hh index 26dc374ea..ce838aecc 100644 --- a/src/OT/glyf/SubsetGlyph.hh +++ b/src/OT/glyf/SubsetGlyph.hh @@ -22,7 +22,7 @@ struct SubsetGlyph bool serialize (hb_serialize_context_t *c, bool use_short_loca, - const hb_subset_plan_t *plan) + const hb_subset_plan_t *plan) const { TRACE_SERIALIZE (this); diff --git a/src/OT/glyf/glyf.hh b/src/OT/glyf/glyf.hh index 7f269e8af..ead65290e 100644 --- a/src/OT/glyf/glyf.hh +++ b/src/OT/glyf/glyf.hh @@ -129,7 +129,7 @@ struct glyf padded_offsets[i] = glyphs[i].length (); } - bool result = glyf_prime->serialize (c->serializer, glyphs.writer (), use_short_loca, c->plan); + bool result = glyf_prime->serialize (c->serializer, glyphs.iter (), use_short_loca, c->plan); if (c->plan->normalized_coords && !c->plan->pinned_at_default) _free_compiled_subset_glyphs (glyphs);