mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-06 12:35:42 -04:00
Common/HeapArray: Fix move construction/assignment
This commit is contained in:
parent
46239e6758
commit
a988384423
@ -24,7 +24,7 @@ public:
|
|||||||
std::copy(copy.cbegin(), copy.cend(), begin());
|
std::copy(copy.cbegin(), copy.cend(), begin());
|
||||||
}
|
}
|
||||||
|
|
||||||
HeapArray(const this_type&& move)
|
HeapArray(this_type&& move)
|
||||||
{
|
{
|
||||||
m_data = move.m_data;
|
m_data = move.m_data;
|
||||||
move.m_data = nullptr;
|
move.m_data = nullptr;
|
||||||
@ -71,7 +71,7 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
this_type& operator=(const this_type&& move)
|
this_type& operator=(this_type&& move)
|
||||||
{
|
{
|
||||||
delete[] m_data;
|
delete[] m_data;
|
||||||
m_data = move.m_data;
|
m_data = move.m_data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user