From 281b4705b43503e0a377a6ac251f4b48ae00542f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 18 Nov 2022 20:25:05 -0700 Subject: [PATCH] [pool] Rewrite a loop as dagger --- src/hb-pool.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hb-pool.hh b/src/hb-pool.hh index a238d6404..95fc5a08e 100644 --- a/src/hb-pool.hh +++ b/src/hb-pool.hh @@ -39,8 +39,9 @@ struct hb_pool_t { next = nullptr; - for (chunk_t *_ : chunks) - hb_free (_); + + hb_iter (chunks) + | hb_apply (hb_free) + ; } T* alloc ()