[subset] return bool not hb_bool_t from table::subset

This commit is contained in:
Rod Sheeter 2018-02-14 15:24:49 -08:00
parent 88d56e241b
commit 3ed70e5e64
4 changed files with 4 additions and 4 deletions

View File

@ -590,7 +590,7 @@ struct cmap
return true; return true;
} }
inline hb_bool_t subset (hb_subset_plan_t *plan) const inline bool subset (hb_subset_plan_t *plan) const
{ {
hb_auto_array_t<CmapSubtableLongGroup> groups; hb_auto_array_t<CmapSubtableLongGroup> groups;

View File

@ -61,7 +61,7 @@ struct maxp
(version.major == 0 && version.minor == 0x5000u))); (version.major == 0 && version.minor == 0x5000u)));
} }
inline hb_bool_t subset (hb_subset_plan_t *plan) const inline bool subset (hb_subset_plan_t *plan) const
{ {
hb_blob_t *maxp_blob = OT::Sanitizer<OT::maxp>().sanitize (hb_face_reference_table (plan->source, HB_OT_TAG_maxp)); hb_blob_t *maxp_blob = OT::Sanitizer<OT::maxp>().sanitize (hb_face_reference_table (plan->source, HB_OT_TAG_maxp));
hb_blob_t *maxp_prime_blob = hb_blob_create_sub_blob (maxp_blob, 0, -1); hb_blob_t *maxp_prime_blob = hb_blob_create_sub_blob (maxp_blob, 0, -1);

View File

@ -49,7 +49,7 @@ struct os2
return_trace (c->check_struct (this)); return_trace (c->check_struct (this));
} }
inline hb_bool_t subset (hb_subset_plan_t *plan) const inline bool subset (hb_subset_plan_t *plan) const
{ {
hb_blob_t *os2_blob = OT::Sanitizer<OT::os2>().sanitize (hb_face_reference_table (plan->source, HB_OT_TAG_os2)); hb_blob_t *os2_blob = OT::Sanitizer<OT::os2>().sanitize (hb_face_reference_table (plan->source, HB_OT_TAG_os2));
hb_blob_t *os2_prime_blob = hb_blob_create_sub_blob (os2_blob, 0, -1); hb_blob_t *os2_prime_blob = hb_blob_create_sub_blob (os2_blob, 0, -1);

View File

@ -80,7 +80,7 @@ hb_subset_profile_destroy (hb_subset_profile_t *profile)
} }
template<typename TableType> template<typename TableType>
static hb_bool_t static bool
_subset (hb_subset_plan_t *plan) _subset (hb_subset_plan_t *plan)
{ {
OT::Sanitizer<TableType> sanitizer; OT::Sanitizer<TableType> sanitizer;