[buffer] HB_NODISCARD output_info()

This commit is contained in:
Behdad Esfahbod 2021-03-15 14:12:10 -06:00
parent 2a0dbb3ee5
commit e6be9eb4fb
3 changed files with 3 additions and 3 deletions

View File

@ -242,7 +242,7 @@ struct hb_buffer_t
out_len++; out_len++;
return out_info[out_len - 1]; return out_info[out_len - 1];
} }
bool output_info (const hb_glyph_info_t &glyph_info) HB_NODISCARD bool output_info (const hb_glyph_info_t &glyph_info)
{ {
if (unlikely (!make_room_for (0, 1))) return false; if (unlikely (!make_room_for (0, 1))) return false;

View File

@ -88,7 +88,7 @@ hb_syllabic_insert_dotted_circles (hb_font_t *font,
buffer->next_glyph (); buffer->next_glyph ();
} }
buffer->output_info (ginfo); (void) buffer->output_info (ginfo);
} }
else else
buffer->next_glyph (); buffer->next_glyph ();

View File

@ -534,7 +534,7 @@ hb_insert_dotted_circle (hb_buffer_t *buffer, hb_font_t *font)
hb_glyph_info_t info = dottedcircle; hb_glyph_info_t info = dottedcircle;
info.cluster = buffer->cur().cluster; info.cluster = buffer->cur().cluster;
info.mask = buffer->cur().mask; info.mask = buffer->cur().mask;
buffer->output_info (info); (void) buffer->output_info (info);
buffer->swap_buffers (); buffer->swap_buffers ();
} }