Common/HeapArray: Fix move construction/assignment

This commit is contained in:
Connor McLaughlin 2020-03-29 01:13:14 +10:00
parent 46239e6758
commit a988384423

View file

@ -24,7 +24,7 @@ public:
std::copy(copy.cbegin(), copy.cend(), begin());
}
HeapArray(const this_type&& move)
HeapArray(this_type&& move)
{
m_data = move.m_data;
move.m_data = nullptr;
@ -71,7 +71,7 @@ public:
return *this;
}
this_type& operator=(const this_type&& move)
this_type& operator=(this_type&& move)
{
delete[] m_data;
m_data = move.m_data;