Smaller issues from review

This commit is contained in:
Simon Cozens 2020-09-17 15:08:32 +01:00
parent 8b3b835a0a
commit f19018da41
3 changed files with 10 additions and 10 deletions

View File

@ -1006,8 +1006,8 @@ initial_reordering_indic (const hb_ot_shape_plan_t *plan,
hb_font_t *font,
hb_buffer_t *buffer)
{
if (!buffer->message (font, "start reordering indic initial"))
return;
if (!buffer->message (font, "start reordering indic initial"))
return;
update_consonant_positions_indic (plan, font, buffer);
insert_dotted_circles_indic (plan, font, buffer);
@ -1488,10 +1488,10 @@ final_reordering_indic (const hb_ot_shape_plan_t *plan,
unsigned int count = buffer->len;
if (unlikely (!count)) return;
if (buffer->message (font, "start reordering indic final")) {
foreach_syllable (buffer, start, end)
final_reordering_syllable_indic (plan, buffer, start, end);
buffer->message (font, "end reordering indic final");
if (buffer->message (font, "start reordering indic final")) {
foreach_syllable (buffer, start, end)
final_reordering_syllable_indic (plan, buffer, start, end);
buffer->message (font, "end reordering indic final");
}
HB_BUFFER_DEALLOCATE_VAR (buffer, indic_category);

View File

@ -332,7 +332,7 @@ reorder_myanmar (const hb_ot_shape_plan_t *plan,
foreach_syllable (buffer, start, end)
reorder_syllable_myanmar (plan, font->face, buffer, start, end);
buffer->message (font, "end reordering myanmar");
(void)buffer->message (font, "end reordering myanmar");
}
HB_BUFFER_DEALLOCATE_VAR (buffer, myanmar_category);

View File

@ -851,7 +851,7 @@ hb_ot_substitute_default (const hb_ot_shape_context_t *c)
HB_BUFFER_ALLOCATE_VAR (buffer, glyph_index);
if (buffer->message(c->font, "begin normalize")) {
if (buffer->message(c->font, "start normalize")) {
_hb_ot_shape_normalize (c->plan, buffer, c->font);
buffer->message(c->font, "end normalize");
}
@ -900,7 +900,7 @@ hb_ot_substitute_post (const hb_ot_shape_context_t *c)
#endif
if (c->plan->shaper->postprocess_glyphs &&
c->buffer->message(c->font, "begin postprocess")) {
c->buffer->message(c->font, "start postprocess")) {
c->plan->shaper->postprocess_glyphs (c->plan, c->buffer, c->font);
(void)c->buffer->message(c->font, "end postprocess");
}
@ -1127,7 +1127,7 @@ hb_ot_shape_internal (hb_ot_shape_context_t *c)
hb_ensure_native_direction (c->buffer);
if (c->plan->shaper->preprocess_text &&
c->buffer->message(c->font, "begin preprocess")) {
c->buffer->message(c->font, "start preprocess")) {
c->plan->shaper->preprocess_text (c->plan, c->buffer, c->font);
(void)c->buffer->message(c->font, "end preprocess");
}