diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 42c3a1962..e4ae43511 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -535,13 +535,12 @@ struct ArrayOf hb_array_t as_array () const { return hb_array (arrayZ, len); } /* Iterator. */ - typedef hb_array_t const_iter_t; - typedef hb_array_t< Type> iter_t; - const_iter_t iter () const { return as_array (); } - const_iter_t citer () const { return as_array (); } - iter_t iter () { return as_array (); } - operator iter_t () { return iter (); } - operator const_iter_t () const { return iter (); } + typedef hb_array_t iter_t; + typedef hb_array_t< Type> writer_t; + iter_t iter () const { return as_array (); } + writer_t writer () { return as_array (); } + operator iter_t () const { return iter (); } + operator writer_t () { return writer (); } hb_array_t sub_array (unsigned int start_offset, unsigned int count) const { return as_array ().sub_array (start_offset, count);} @@ -810,13 +809,12 @@ struct SortedArrayOf : ArrayOf hb_sorted_array_t as_array () const { return hb_sorted_array (this->arrayZ, this->len); } /* Iterator. */ - typedef hb_sorted_array_t const_iter_t; - typedef hb_sorted_array_t< Type> iter_t; - const_iter_t iter () const { return as_array (); } - const_iter_t citer () const { return as_array (); } - iter_t iter () { return as_array (); } - operator iter_t () { return iter (); } - operator const_iter_t () const { return iter (); } + typedef hb_sorted_array_t iter_t; + typedef hb_sorted_array_t< Type> writer_t; + iter_t iter () const { return as_array (); } + writer_t writer () { return as_array (); } + operator iter_t () const { return iter (); } + operator writer_t () { return writer (); } hb_sorted_array_t sub_array (unsigned int start_offset, unsigned int count) const { return as_array ().sub_array (start_offset, count);} diff --git a/src/hb-vector.hh b/src/hb-vector.hh index d4c48586c..27f410165 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -93,13 +93,12 @@ struct hb_vector_t hb_array_t as_array () const { return hb_array (arrayZ(), length); } /* Iterator. */ - typedef hb_array_t const_iter_t; - typedef hb_array_t< Type> iter_t; - const_iter_t iter () const { return as_array (); } - const_iter_t citer () const { return as_array (); } - iter_t iter () { return as_array (); } - operator iter_t () { return iter (); } - operator const_iter_t () const { return iter (); } + typedef hb_array_t iter_t; + typedef hb_array_t< Type> writer_t; + iter_t iter () const { return as_array (); } + writer_t writer () { return as_array (); } + operator iter_t () const { return iter (); } + operator writer_t () { return writer (); } hb_array_t sub_array (unsigned int start_offset, unsigned int count) const { return as_array ().sub_array (start_offset, count);}