libcamera: span: Use default copy assignemnt operator

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 <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
Laurent Pinchart
2020-09-29 03:50:03 +03:00
parent 94d2ea5974
commit dcf2a8ce10

View File

@@ -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(); }