From 2e7c1239c886ea8fa6ba37b7597d76b2d319f468 Mon Sep 17 00:00:00 2001 From: blueshade7 Date: Tue, 26 Nov 2019 09:57:53 -0800 Subject: [PATCH] minor: coding style --- src/hb-ot-font.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hb-ot-font.cc b/src/hb-ot-font.cc index af0063bc5..bc5ee0f85 100644 --- a/src/hb-ot-font.cc +++ b/src/hb-ot-font.cc @@ -210,11 +210,11 @@ hb_ot_get_glyph_name (hb_font_t *font HB_UNUSED, void *user_data HB_UNUSED) { const hb_ot_face_t *ot_face = (const hb_ot_face_t *) font_data; - hb_bool_t ret = ot_face->post->get_glyph_name (glyph, name, size); + if (ot_face->post->get_glyph_name (glyph, name, size)) return true; #ifndef HB_NO_OT_FONT_CFF - if (!ret) ret = ot_face->cff1->get_glyph_name (glyph, name, size); + if (ot_face->cff1->get_glyph_name (glyph, name, size)) return true; #endif - return ret; + return false; } static hb_bool_t hb_ot_get_glyph_from_name (hb_font_t *font HB_UNUSED,