From 8f5abdc42f8b25c08cf4f3389d70ccbdb112fc20 Mon Sep 17 00:00:00 2001 From: Bastien Dejean Date: Sat, 10 Jan 2026 13:02:17 +0100 Subject: [PATCH] GCC 4.9.4: Keep template names unique (#5713) Fixes #5712. --- src/hb-ot-var-common.hh | 14 +++++++------- src/hb-vector.hh | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/hb-ot-var-common.hh b/src/hb-ot-var-common.hh index 7eba3c39d..174816193 100644 --- a/src/hb-ot-var-common.hh +++ b/src/hb-ot-var-common.hh @@ -320,13 +320,13 @@ struct tuple_delta_t void copy_from (const tuple_delta_t& o, hb_alloc_pool_t *pool = nullptr) { axis_tuples = o.axis_tuples; - indices.allocate_from_pool (pool, o.indices); - deltas_x.allocate_from_pool (pool, o.deltas_x); - deltas_y.allocate_from_pool (pool, o.deltas_y); - compiled_tuple_header.allocate_from_pool (pool, o.compiled_tuple_header); - compiled_deltas.allocate_from_pool (pool, o.compiled_deltas); - compiled_peak_coords.allocate_from_pool (pool, o.compiled_peak_coords); - compiled_interm_coords.allocate_from_pool (pool, o.compiled_interm_coords); + indices.duplicate_vector_from_pool (pool, o.indices); + deltas_x.duplicate_vector_from_pool (pool, o.deltas_x); + deltas_y.duplicate_vector_from_pool (pool, o.deltas_y); + compiled_tuple_header.duplicate_vector_from_pool (pool, o.compiled_tuple_header); + compiled_deltas.duplicate_vector_from_pool (pool, o.compiled_deltas); + compiled_peak_coords.duplicate_vector_from_pool (pool, o.compiled_peak_coords); + compiled_interm_coords.duplicate_vector_from_pool (pool, o.compiled_interm_coords); } void remove_axis (hb_tag_t axis_tag) diff --git a/src/hb-vector.hh b/src/hb-vector.hh index e8b8ba9bb..75836ea63 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -570,7 +570,7 @@ struct hb_vector_t template HB_ALWAYS_INLINE_VECTOR_ALLOCS - bool allocate_from_pool (allocator_t *allocator, const hb_vector_t &other) + bool duplicate_vector_from_pool (allocator_t *allocator, const hb_vector_t &other) { if (unlikely (!allocate_from_pool (allocator, other.length, false))) return false;