[buffer] HB_NODISCARD ensure_glyphs() / ensure_unicode()

This commit is contained in:
Behdad Esfahbod 2021-03-15 13:58:30 -06:00
parent bc22305b6a
commit c355508a89
1 changed files with 2 additions and 2 deletions

View File

@ -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))
{