From 63a716c540657d2e0c71d3443a87ac97530cf265 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 29 Jan 2021 20:36:42 -0700 Subject: [PATCH] [indic] Use lfind() --- src/hb-ot-shape-complex-indic.hh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/hb-ot-shape-complex-indic.hh b/src/hb-ot-shape-complex-indic.hh index 5ee1c044b..8c6e17184 100644 --- a/src/hb-ot-shape-complex-indic.hh +++ b/src/hb-ot-shape-complex-indic.hh @@ -310,10 +310,7 @@ static const hb_codepoint_t ra_chars[] = { static inline bool is_ra (hb_codepoint_t u) { - for (unsigned int i = 0; i < ARRAY_LENGTH (ra_chars); i++) - if (u == ra_chars[i]) - return true; - return false; + return hb_array (ra_chars).lfind (u); } static inline void