[buffer] HB_NODISCARD output_info()
This commit is contained in:
parent
2a0dbb3ee5
commit
e6be9eb4fb
|
@ -242,7 +242,7 @@ struct hb_buffer_t
|
|||
out_len++;
|
||||
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;
|
||||
|
||||
|
|
|
@ -88,7 +88,7 @@ hb_syllabic_insert_dotted_circles (hb_font_t *font,
|
|||
buffer->next_glyph ();
|
||||
}
|
||||
|
||||
buffer->output_info (ginfo);
|
||||
(void) buffer->output_info (ginfo);
|
||||
}
|
||||
else
|
||||
buffer->next_glyph ();
|
||||
|
|
|
@ -534,7 +534,7 @@ hb_insert_dotted_circle (hb_buffer_t *buffer, hb_font_t *font)
|
|||
hb_glyph_info_t info = dottedcircle;
|
||||
info.cluster = buffer->cur().cluster;
|
||||
info.mask = buffer->cur().mask;
|
||||
buffer->output_info (info);
|
||||
(void) buffer->output_info (info);
|
||||
buffer->swap_buffers ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue