summaryrefslogtreecommitdiff
path: root/src/face.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2023-10-25 21:06:52 +1100
committerMaxime Coste <mawww@kakoune.org>2023-10-25 21:06:52 +1100
commit2fa55be40a787be71f4360fd4e36b7a790c74fa6 (patch)
tree4ba6c0bc844f2d4ce6a004ae71ef52aa21f95448 /src/face.hh
parent96884193ddad76530a09a1b095180b0ca8257b7c (diff)
Default comparison operators that can be
Diffstat (limited to 'src/face.hh')
-rw-r--r--src/face.hh8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/face.hh b/src/face.hh
index bbe8031a..1ed986ef 100644
--- a/src/face.hh
+++ b/src/face.hh
@@ -33,13 +33,7 @@ struct Face
Attribute attributes = Attribute::Normal;
Color underline = Color::Default;
- friend constexpr bool operator==(const Face& lhs, const Face& rhs)
- {
- return lhs.fg == rhs.fg and
- lhs.bg == rhs.bg and
- lhs.underline == rhs.underline and
- lhs.attributes == rhs.attributes;
- }
+ friend constexpr bool operator==(const Face& lhs, const Face& rhs) = default;
friend constexpr size_t hash_value(const Face& val)
{