diff --git a/src/common/heap_array.h b/src/common/heap_array.h index f40fcf834..bf4a9a2d9 100644 --- a/src/common/heap_array.h +++ b/src/common/heap_array.h @@ -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;