From 2fa55be40a787be71f4360fd4e36b7a790c74fa6 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 25 Oct 2023 21:06:52 +1100 Subject: Default comparison operators that can be --- src/context.hh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/context.hh') diff --git a/src/context.hh b/src/context.hh index 846855a2..fca4ba06 100644 --- a/src/context.hh +++ b/src/context.hh @@ -28,10 +28,7 @@ struct JumpList const SelectionList& backward(Context& context, int count); void forget_buffer(Buffer& buffer); - friend bool operator==(const JumpList& lhs, const JumpList& rhs) - { - return lhs.m_jumps == rhs.m_jumps and lhs.m_current == rhs.m_current; - } + friend bool operator==(const JumpList& lhs, const JumpList& rhs) = default; size_t current_index() const { return m_current; } -- cgit v1.2.3