From 3ca809e3623e59b9a99bc0b9e5d10b02238bba3c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 28 Aug 2019 13:49:35 -0700 Subject: [PATCH] Add ArrayOf::pop() --- src/hb-open-type.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 511b8aeec..c9e83077c 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -572,6 +572,8 @@ struct ArrayOf explicit operator bool () const { return len; } + void pop () { len--; } + hb_array_t< Type> as_array () { return hb_array (arrayZ, len); } hb_array_t as_array () const { return hb_array (arrayZ, len); }