From c350458539ee16bb06fde317ad440cd3c8159471 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 4 Jan 2023 13:25:03 -0700 Subject: [PATCH] [subset-plan] Relax const return type of a few functions Fixes https://github.com/harfbuzz/harfbuzz/issues/4003 --- src/hb-subset-plan.cc | 6 +++--- src/hb-subset.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hb-subset-plan.cc b/src/hb-subset-plan.cc index b7964c4d9..ddeacb2ed 100644 --- a/src/hb-subset-plan.cc +++ b/src/hb-subset-plan.cc @@ -1005,7 +1005,7 @@ hb_subset_plan_destroy (hb_subset_plan_t *plan) * * Since: 4.0.0 **/ -const hb_map_t* +hb_map_t * hb_subset_plan_old_to_new_glyph_mapping (const hb_subset_plan_t *plan) { return plan->glyph_map; @@ -1023,7 +1023,7 @@ hb_subset_plan_old_to_new_glyph_mapping (const hb_subset_plan_t *plan) * * Since: 4.0.0 **/ -const hb_map_t* +hb_map_t * hb_subset_plan_new_to_old_glyph_mapping (const hb_subset_plan_t *plan) { return plan->reverse_glyph_map; @@ -1041,7 +1041,7 @@ hb_subset_plan_new_to_old_glyph_mapping (const hb_subset_plan_t *plan) * * Since: 4.0.0 **/ -const hb_map_t* +hb_map_t * hb_subset_plan_unicode_to_old_glyph_mapping (const hb_subset_plan_t *plan) { return plan->codepoint_to_glyph; diff --git a/src/hb-subset.h b/src/hb-subset.h index ef7d4ba54..1c6aa0d5c 100644 --- a/src/hb-subset.h +++ b/src/hb-subset.h @@ -207,13 +207,13 @@ hb_subset_plan_create_or_fail (hb_face_t *face, HB_EXTERN void hb_subset_plan_destroy (hb_subset_plan_t *plan); -HB_EXTERN const hb_map_t* +HB_EXTERN hb_map_t * hb_subset_plan_old_to_new_glyph_mapping (const hb_subset_plan_t *plan); -HB_EXTERN const hb_map_t* +HB_EXTERN hb_map_t * hb_subset_plan_new_to_old_glyph_mapping (const hb_subset_plan_t *plan); -HB_EXTERN const hb_map_t* +HB_EXTERN hb_map_t * hb_subset_plan_unicode_to_old_glyph_mapping (const hb_subset_plan_t *plan);