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/terminal_ui.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/terminal_ui.cc') diff --git a/src/terminal_ui.cc b/src/terminal_ui.cc index 2b3ce073..b639884f 100644 --- a/src/terminal_ui.cc +++ b/src/terminal_ui.cc @@ -68,7 +68,7 @@ struct TerminalUI::Window::Line text.resize(it - text.begin(), 0); } - friend bool operator==(const Atom& lhs, const Atom& rhs) { return lhs.text == rhs.text and lhs.skip == rhs.skip and lhs.face == rhs.face; } + friend bool operator==(const Atom& lhs, const Atom& rhs) = default; friend size_t hash_value(const Atom& atom) { return hash_values(atom.text, atom.skip, atom.face); } }; -- cgit v1.2.3