From dcf2a8ce1026d13b16d5cba065dec5c9bb78a0a1 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 29 Sep 2020 03:50:03 +0300 Subject: libcamera: span: Use default copy assignemnt operator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The custom implementation of the copy assignment operator is identical to the one the compiler would generate. Replace it by the default. Signed-off-by: Laurent Pinchart Reviewed-by: Paul Elder Reviewed-by: Niklas Söderlund --- include/libcamera/span.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'include') diff --git a/include/libcamera/span.h b/include/libcamera/span.h index 738af6ac..a53a80b8 100644 --- a/include/libcamera/span.h +++ b/include/libcamera/span.h @@ -188,12 +188,7 @@ public: } constexpr Span(const Span &other) noexcept = default; - - constexpr Span &operator=(const Span &other) noexcept - { - data_ = other.data_; - return *this; - } + constexpr Span &operator=(const Span &other) noexcept = default; constexpr iterator begin() const { return data(); } constexpr const_iterator cbegin() const { return begin(); } -- cgit v1.2.1