From c88a6a9ec3c38793ec8b662362282e076e948943 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 1 Jun 2022 09:46:41 -0600 Subject: [PATCH] [face] Remove const from get_user_data prototype This was done by mistake. Since the returned user_data can be changed, face should not be marked const. Other object types follow this parttern. --- src/hb-face.cc | 2 +- src/hb-face.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-face.cc b/src/hb-face.cc index 536559863..87a64e827 100644 --- a/src/hb-face.cc +++ b/src/hb-face.cc @@ -342,7 +342,7 @@ hb_face_set_user_data (hb_face_t *face, * Since: 0.9.2 **/ void * -hb_face_get_user_data (const hb_face_t *face, +hb_face_get_user_data (hb_face_t *face, hb_user_data_key_t *key) { return hb_object_get_user_data (face, key); diff --git a/src/hb-face.h b/src/hb-face.h index 6ef2f8b88..3b7477a76 100644 --- a/src/hb-face.h +++ b/src/hb-face.h @@ -96,7 +96,7 @@ hb_face_set_user_data (hb_face_t *face, hb_bool_t replace); HB_EXTERN void * -hb_face_get_user_data (const hb_face_t *face, +hb_face_get_user_data (hb_face_t *face, hb_user_data_key_t *key); HB_EXTERN void