diff options
Diffstat (limited to 'sql/filesort_utils.h')
-rw-r--r-- | sql/filesort_utils.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/sql/filesort_utils.h b/sql/filesort_utils.h index 1ab1ba2daa8..1f80c145c70 100644 --- a/sql/filesort_utils.h +++ b/sql/filesort_utils.h @@ -112,17 +112,11 @@ public: /** We need an assignment operator, see filesort(). This happens to have the same semantics as the one that would be - generated by the compiler. We still implement it here, to show shallow - assignment explicitly: we have two objects sharing the same array. + generated by the compiler. + Note that this is a shallow copy. We have two objects sharing the same + array. */ - Filesort_buffer &operator=(const Filesort_buffer &rhs) - { - m_idx_array= rhs.m_idx_array; - m_record_length= rhs.m_record_length; - m_start_of_data= rhs.m_start_of_data; - allocated_size= rhs.allocated_size; - return *this; - } + Filesort_buffer &operator=(const Filesort_buffer &rhs) = default; private: typedef Bounds_checked_array<uchar*> Idx_array; |