From c355508a8907584e41c4317fb56eac49f9627969 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 15 Mar 2021 13:58:30 -0600 Subject: [PATCH] [buffer] HB_NODISCARD ensure_glyphs() / ensure_unicode() --- src/hb-buffer.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-buffer.hh b/src/hb-buffer.hh index 959ce70bd..6a8415e2e 100644 --- a/src/hb-buffer.hh +++ b/src/hb-buffer.hh @@ -353,7 +353,7 @@ struct hb_buffer_t assert ((content_type == HB_BUFFER_CONTENT_TYPE_UNICODE) || (!len && (content_type == HB_BUFFER_CONTENT_TYPE_INVALID))); } - bool ensure_glyphs () + HB_NODISCARD bool ensure_glyphs () { if (unlikely (content_type != HB_BUFFER_CONTENT_TYPE_GLYPHS)) { @@ -364,7 +364,7 @@ struct hb_buffer_t } return true; } - bool ensure_unicode () + HB_NODISCARD bool ensure_unicode () { if (unlikely (content_type != HB_BUFFER_CONTENT_TYPE_UNICODE)) {