[inplace] Adjust

This commit is contained in:
Behdad Esfahbod 2022-06-08 06:17:27 -06:00
parent 204d71514c
commit 3ce0a9841f
2 changed files with 6 additions and 2 deletions

View File

@ -3127,6 +3127,12 @@ template <typename context_t>
return l.dispatch (c); return l.dispatch (c);
} }
template <>
inline bool PosLookup::dispatch_recurse_func<hb_is_inplace_context_t> (hb_is_inplace_context_t *c, unsigned int lookup_index)
{
return true;
}
/*static*/ inline hb_closure_lookups_context_t::return_t PosLookup::dispatch_closure_lookups_recurse_func (hb_closure_lookups_context_t *c, unsigned this_index) /*static*/ inline hb_closure_lookups_context_t::return_t PosLookup::dispatch_closure_lookups_recurse_func (hb_closure_lookups_context_t *c, unsigned this_index)
{ {
const PosLookup &l = c->face->table.GPOS.get_relaxed ()->table->get_lookup (this_index); const PosLookup &l = c->face->table.GPOS.get_relaxed ()->table->get_lookup (this_index);

View File

@ -65,8 +65,6 @@ struct hb_is_inplace_context_t :
template <typename T> template <typename T>
inline auto _dispatch (const T &obj, hb_priority<1>) HB_RETURN (return_t, obj.is_inplace () ) inline auto _dispatch (const T &obj, hb_priority<1>) HB_RETURN (return_t, obj.is_inplace () )
template <typename T> template <typename T>
inline auto _dispatch (const T &obj, hb_priority<0>) HB_RETURN (return_t, false )
template <typename T>
inline return_t dispatch (const T &obj) { return _dispatch (obj, hb_prioritize); } inline return_t dispatch (const T &obj) { return _dispatch (obj, hb_prioritize); }
static return_t default_return_value (void) { return true; } static return_t default_return_value (void) { return true; }