From f6e7cb51b13aabb447dc97a59602d65eb42edc4b Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 5 Nov 2018 13:23:07 -0500 Subject: [PATCH] Fix const-confusion in hb_array_t as well --- src/hb-dsalgs.hh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/hb-dsalgs.hh b/src/hb-dsalgs.hh index f2bff063d..9ccd7f255 100644 --- a/src/hb-dsalgs.hh +++ b/src/hb-dsalgs.hh @@ -553,11 +553,9 @@ struct hb_array_t inline unsigned int get_size (void) const { return len * sizeof (Type); } - template inline operator T * (void) { return arrayZ; } - template inline operator const T * (void) const { return arrayZ; } + template inline operator T * (void) const { return arrayZ; } - inline Type * operator & (void) { return arrayZ; } - inline const Type * operator & (void) const { return arrayZ; } + inline Type * operator & (void) const { return arrayZ; } inline hb_array_t sub_array (unsigned int start_offset, unsigned int seg_count) const {