[gsubgpos] Avoid a copy into the vector
This commit is contained in:
parent
615595689c
commit
d2279a204f
|
@ -957,9 +957,9 @@ struct hb_accelerate_subtables_context_t :
|
|||
template <typename T>
|
||||
return_t dispatch (const T &obj)
|
||||
{
|
||||
hb_applicable_t entry;
|
||||
hb_applicable_t *entry = array.push ();
|
||||
|
||||
entry.init (obj,
|
||||
entry->init (obj,
|
||||
apply_to<T>
|
||||
#ifndef HB_NO_OT_LAYOUT_LOOKUP_CACHE
|
||||
, apply_cached_to<T>
|
||||
|
@ -967,8 +967,6 @@ struct hb_accelerate_subtables_context_t :
|
|||
#endif
|
||||
);
|
||||
|
||||
array.push (entry);
|
||||
|
||||
#ifndef HB_NO_OT_LAYOUT_LOOKUP_CACHE
|
||||
/* Cache handling
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue