diff options
| author | Maxime Coste <mawww@kakoune.org> | 2023-10-25 21:06:52 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2023-10-25 21:06:52 +1100 |
| commit | 2fa55be40a787be71f4360fd4e36b7a790c74fa6 (patch) | |
| tree | 4ba6c0bc844f2d4ce6a004ae71ef52aa21f95448 /src/terminal_ui.cc | |
| parent | 96884193ddad76530a09a1b095180b0ca8257b7c (diff) | |
Default comparison operators that can be
Diffstat (limited to 'src/terminal_ui.cc')
| -rw-r--r-- | src/terminal_ui.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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); } }; |
