[subset-plan] Relax const return type of a few functions

Fixes https://github.com/harfbuzz/harfbuzz/issues/4003
This commit is contained in:
Behdad Esfahbod 2023-01-04 13:25:03 -07:00
parent dbf0964a0f
commit c350458539
2 changed files with 6 additions and 6 deletions

View File

@ -1005,7 +1005,7 @@ hb_subset_plan_destroy (hb_subset_plan_t *plan)
* *
* Since: 4.0.0 * 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) hb_subset_plan_old_to_new_glyph_mapping (const hb_subset_plan_t *plan)
{ {
return plan->glyph_map; 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 * 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) hb_subset_plan_new_to_old_glyph_mapping (const hb_subset_plan_t *plan)
{ {
return plan->reverse_glyph_map; 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 * 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) hb_subset_plan_unicode_to_old_glyph_mapping (const hb_subset_plan_t *plan)
{ {
return plan->codepoint_to_glyph; return plan->codepoint_to_glyph;

View File

@ -207,13 +207,13 @@ hb_subset_plan_create_or_fail (hb_face_t *face,
HB_EXTERN void HB_EXTERN void
hb_subset_plan_destroy (hb_subset_plan_t *plan); 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_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_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); hb_subset_plan_unicode_to_old_glyph_mapping (const hb_subset_plan_t *plan);