[dispatch] Minor
This commit is contained in:
parent
f9d211af1d
commit
c78e4784fb
|
@ -139,6 +139,7 @@ struct hb_dispatch_context_t
|
||||||
template <typename T, typename F>
|
template <typename T, typename F>
|
||||||
inline bool may_dispatch (const T *obj HB_UNUSED, const F *format HB_UNUSED) { return true; }
|
inline bool may_dispatch (const T *obj HB_UNUSED, const F *format HB_UNUSED) { return true; }
|
||||||
static return_t no_dispatch_return_value (void) { return Context::default_return_value (); }
|
static return_t no_dispatch_return_value (void) { return Context::default_return_value (); }
|
||||||
|
static bool stop_sublookup_iteration (const return_t r HB_UNUSED) { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,6 @@ struct hb_closure_context_t :
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline return_t dispatch (const T &obj) { obj.closure (this); return HB_VOID; }
|
inline return_t dispatch (const T &obj) { obj.closure (this); return HB_VOID; }
|
||||||
static return_t default_return_value (void) { return HB_VOID; }
|
static return_t default_return_value (void) { return HB_VOID; }
|
||||||
bool stop_sublookup_iteration (return_t r HB_UNUSED) const { return false; }
|
|
||||||
void recurse (unsigned int lookup_index)
|
void recurse (unsigned int lookup_index)
|
||||||
{
|
{
|
||||||
if (unlikely (nesting_level_left == 0 || !recurse_func))
|
if (unlikely (nesting_level_left == 0 || !recurse_func))
|
||||||
|
@ -162,7 +161,6 @@ struct hb_collect_glyphs_context_t :
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline return_t dispatch (const T &obj) { obj.collect_glyphs (this); return HB_VOID; }
|
inline return_t dispatch (const T &obj) { obj.collect_glyphs (this); return HB_VOID; }
|
||||||
static return_t default_return_value (void) { return HB_VOID; }
|
static return_t default_return_value (void) { return HB_VOID; }
|
||||||
bool stop_sublookup_iteration (return_t r HB_UNUSED) const { return false; }
|
|
||||||
void recurse (unsigned int lookup_index)
|
void recurse (unsigned int lookup_index)
|
||||||
{
|
{
|
||||||
if (unlikely (nesting_level_left == 0 || !recurse_func))
|
if (unlikely (nesting_level_left == 0 || !recurse_func))
|
||||||
|
@ -665,7 +663,6 @@ struct hb_get_subtables_context_t :
|
||||||
return HB_VOID;
|
return HB_VOID;
|
||||||
}
|
}
|
||||||
static return_t default_return_value (void) { return HB_VOID; }
|
static return_t default_return_value (void) { return HB_VOID; }
|
||||||
bool stop_sublookup_iteration (return_t r HB_UNUSED) const { return false; }
|
|
||||||
|
|
||||||
hb_get_subtables_context_t (array_t &array_) :
|
hb_get_subtables_context_t (array_t &array_) :
|
||||||
array (array_),
|
array (array_),
|
||||||
|
|
|
@ -43,7 +43,6 @@ struct hb_subset_context_t :
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline bool dispatch (const T &obj) { return obj.subset (this); }
|
inline bool dispatch (const T &obj) { return obj.subset (this); }
|
||||||
static bool default_return_value (void) { return true; }
|
static bool default_return_value (void) { return true; }
|
||||||
bool stop_sublookup_iteration (bool r HB_UNUSED) const { return false; }
|
|
||||||
|
|
||||||
hb_subset_plan_t *plan;
|
hb_subset_plan_t *plan;
|
||||||
hb_serialize_context_t *serializer;
|
hb_serialize_context_t *serializer;
|
||||||
|
|
Loading…
Reference in New Issue