From 8d7e92111786b21906157127c24b72b1e444e6e7 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 4 Dec 2022 11:01:45 -0700 Subject: [PATCH] [map] Add hb_map_filter_invalid Use it in one place. --- src/OT/Layout/Common/Coverage.hh | 2 +- src/hb-map.hh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/OT/Layout/Common/Coverage.hh b/src/OT/Layout/Common/Coverage.hh index fbd7c642a..862767191 100644 --- a/src/OT/Layout/Common/Coverage.hh +++ b/src/OT/Layout/Common/Coverage.hh @@ -147,8 +147,8 @@ struct Coverage TRACE_SUBSET (this); auto it = + iter () - | hb_filter (c->plan->glyph_map_gsub) | hb_map_retains_sorting (c->plan->glyph_map_gsub) + | hb_filter (hb_map_filter_invalid) ; // Cache the iterator result as it will be iterated multiple times diff --git a/src/hb-map.hh b/src/hb-map.hh index bfb1b3f76..f5f180e9b 100644 --- a/src/hb-map.hh +++ b/src/hb-map.hh @@ -451,6 +451,8 @@ struct hb_map_t : hb_hashmap_t static inline hb_hashmap_t* hb_hashmap_create ()