From 138461beb474cc65fe4b967efbd12b4e7753ead1 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 7 Jun 2023 14:07:39 -0600 Subject: [PATCH] [susbet/cff] Minor remove one indirection --- src/hb-ot-cff-common.hh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/hb-ot-cff-common.hh b/src/hb-ot-cff-common.hh index b6294f821..94a3937d7 100644 --- a/src/hb-ot-cff-common.hh +++ b/src/hb-ot-cff-common.hh @@ -74,16 +74,15 @@ struct CFFIndex if (unlikely (!ret)) return_trace (false); for (const auto &_ : +it) { - auto it = hb_iter (_); - unsigned len = hb_len (it); + unsigned len = _.length; if (len <= 1) { if (!len) continue; - *ret++ = *it.arrayZ; + *ret++ = *_.arrayZ; continue; } - hb_memcpy (ret, it.arrayZ, len); + hb_memcpy (ret, _.arrayZ, len); ret += len; } return_trace (true);