This commit is contained in:
Behdad Esfahbod 2018-11-16 14:31:05 -08:00
parent 50d1a41c08
commit aa06574823
5 changed files with 5 additions and 5 deletions

View File

@ -169,7 +169,7 @@ struct trak
{ {
static const hb_tag_t tableTag = HB_AAT_TAG_trak; static const hb_tag_t tableTag = HB_AAT_TAG_trak;
inline bool has_data (void) const { return version.to_int () != 0; } inline bool has_data (void) const { return version.to_int (); }
inline bool apply (hb_aat_apply_context_t *c) const inline bool apply (hb_aat_apply_context_t *c) const
{ {

View File

@ -348,7 +348,7 @@ struct GDEF
ComponentGlyph = 4 ComponentGlyph = 4
}; };
inline bool has_data (void) const { return version.to_int () != 0; } inline bool has_data (void) const { return version.to_int (); }
inline bool has_glyph_classes (void) const { return glyphClassDef != 0; } inline bool has_glyph_classes (void) const { return glyphClassDef != 0; }
inline unsigned int get_glyph_class (hb_codepoint_t glyph) const inline unsigned int get_glyph_class (hb_codepoint_t glyph) const
{ return (this+glyphClassDef).get_class (glyph); } { return (this+glyphClassDef).get_class (glyph); }

View File

@ -2657,7 +2657,7 @@ struct hb_ot_layout_lookup_accelerator_t
struct GSUBGPOS struct GSUBGPOS
{ {
inline bool has_data (void) const { return version.to_int () != 0; } inline bool has_data (void) const { return version.to_int (); }
inline unsigned int get_script_count (void) const inline unsigned int get_script_count (void) const
{ return (this+scriptList).len; } { return (this+scriptList).len; }
inline const Tag& get_script_tag (unsigned int i) const inline const Tag& get_script_tag (unsigned int i) const

View File

@ -684,7 +684,7 @@ struct MATH
{ {
static const hb_tag_t tableTag = HB_OT_TAG_MATH; static const hb_tag_t tableTag = HB_OT_TAG_MATH;
inline bool has_data (void) const { return version.to_int () != 0; } inline bool has_data (void) const { return version.to_int (); }
inline bool sanitize (hb_sanitize_context_t *c) const inline bool sanitize (hb_sanitize_context_t *c) const
{ {

View File

@ -88,7 +88,7 @@ struct fvar
{ {
static const hb_tag_t tableTag = HB_OT_TAG_fvar; static const hb_tag_t tableTag = HB_OT_TAG_fvar;
inline bool has_data (void) const { return version.to_int () != 0; } inline bool has_data (void) const { return version.to_int (); }
inline bool sanitize (hb_sanitize_context_t *c) const inline bool sanitize (hb_sanitize_context_t *c) const
{ {