From 2f837a365c0986c2f925624d9c00ede8cd9e7669 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 8 Jan 2019 13:05:01 -0800 Subject: [PATCH] [SortedArrayOf] Fix sub_array() return type --- src/hb-open-type.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 4dc1e2c..52e5f6d 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -806,13 +806,13 @@ struct SortedArrayOf : ArrayOf operator hb_sorted_array_t () { return as_array (); } operator hb_sorted_array_t () const { return as_array (); } - hb_array_t sub_array (unsigned int start_offset, unsigned int count) const + hb_sorted_array_t sub_array (unsigned int start_offset, unsigned int count) const { return as_array ().sub_array (start_offset, count);} - hb_array_t sub_array (unsigned int start_offset, unsigned int *count = nullptr /* IN/OUT */) const + hb_sorted_array_t sub_array (unsigned int start_offset, unsigned int *count = nullptr /* IN/OUT */) const { return as_array ().sub_array (start_offset, count);} - hb_array_t sub_array (unsigned int start_offset, unsigned int count) + hb_sorted_array_t sub_array (unsigned int start_offset, unsigned int count) { return as_array ().sub_array (start_offset, count);} - hb_array_t sub_array (unsigned int start_offset, unsigned int *count = nullptr /* IN/OUT */) + hb_sorted_array_t sub_array (unsigned int start_offset, unsigned int *count = nullptr /* IN/OUT */) { return as_array ().sub_array (start_offset, count);} bool serialize (hb_serialize_context_t *c, unsigned int items_len) -- 2.7.4