[vector] Implement move assignment using swap
This commit is contained in:
parent
eeda2c549d
commit
18a078f968
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue