diff --git a/src/hb-vector.hh b/src/hb-vector.hh index d3a5dffac..af07c28be 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -110,11 +110,7 @@ struct hb_vector_t } hb_vector_t& operator = (hb_vector_t &&o) { - fini (); - allocated = o.allocated; - length = o.length; - arrayZ = o.arrayZ; - o.init (); + hb_swap (*this, o); return *this; }