From 04b82b181d06c229a98314c1620d3ae8a2825267 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 2 Nov 2018 13:47:33 -0400 Subject: [PATCH] Remove pointer cast operators from ArrayOf<> ArrayOf<>, unlike UnsizedArrayOf<>, has data before the array. This was confusing. Remove. --- src/hb-open-type.hh | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index afd75be4d..0f6efdc69 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -452,9 +452,6 @@ struct ArrayOf return arrayZ[i]; } - template inline operator T * (void) { return arrayZ; } - template inline operator const T * (void) const { return arrayZ; } - inline unsigned int get_size (void) const { return len.static_size + len * Type::static_size; }