diff options
Diffstat (limited to 'src/3rdparty/harfbuzz-ng/src/hb-face.cc')
-rw-r--r-- | src/3rdparty/harfbuzz-ng/src/hb-face.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/3rdparty/harfbuzz-ng/src/hb-face.cc b/src/3rdparty/harfbuzz-ng/src/hb-face.cc index 71cf49a5bc..9348af7bf8 100644 --- a/src/3rdparty/harfbuzz-ng/src/hb-face.cc +++ b/src/3rdparty/harfbuzz-ng/src/hb-face.cc @@ -298,7 +298,7 @@ hb_face_get_user_data (hb_face_t *face, void hb_face_make_immutable (hb_face_t *face) { - if (hb_object_is_inert (face)) + if (unlikely (hb_object_is_inert (face))) return; face->immutable = true; @@ -368,7 +368,7 @@ void hb_face_set_index (hb_face_t *face, unsigned int index) { - if (hb_object_is_inert (face)) + if (face->immutable) return; face->index = index; @@ -403,7 +403,7 @@ void hb_face_set_upem (hb_face_t *face, unsigned int upem) { - if (hb_object_is_inert (face)) + if (face->immutable) return; face->upem = upem; @@ -447,7 +447,7 @@ void hb_face_set_glyph_count (hb_face_t *face, unsigned int glyph_count) { - if (hb_object_is_inert (face)) + if (face->immutable) return; face->num_glyphs = glyph_count; |