diff --git a/src/test-iter.cc b/src/test-iter.cc index e12a135c6..cd0a6bc07 100644 --- a/src/test-iter.cc +++ b/src/test-iter.cc @@ -44,19 +44,16 @@ struct array_iter_t : hb_iter_t, T> hb_array_t arr; }; -template inline void -hb_fill (const C &c, const V &v) +template inline void +hb_fill (hb_iter_t i, const V &v) { - for (typename C::iter_t i = c.iter (); i; i++) + for (; i; i++) hb_assign (*i, v); } template inline bool -hb_copy (const D &d, const S &s) +hb_copy (hb_iter_t id, hb_iter_t is) { - typename S::iter_t is = s.iter (); - typename D::iter_t id = d.iter (); - for (; id && is; ++id, ++is) *id = *is;