mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 17:19:17 +01:00
[gsubgpos] Avoid a copy into the vector
This commit is contained in:
1 parent
615595689c
commit
d2279a204f
1 file changed
+6
-8
@@ -957,17 +957,15 @@ 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,
|
||||
apply_to<T>
|
||||
entry->init (obj,
|
||||
apply_to<T>
|
||||
#ifndef HB_NO_OT_LAYOUT_LOOKUP_CACHE
|
||||
, apply_cached_to<T>
|
||||
, cache_func_to<T>
|
||||
, apply_cached_to<T>
|
||||
, cache_func_to<T>
|
||||
#endif
|
||||
);
|
||||
|
||||
array.push (entry);
|
||||
);
|
||||
|
||||
#ifndef HB_NO_OT_LAYOUT_LOOKUP_CACHE
|
||||
/* Cache handling
|
||||
|
||||
Reference in new issue
Block a user