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/face.hh | |
| parent | 96884193ddad76530a09a1b095180b0ca8257b7c (diff) | |
Default comparison operators that can be
Diffstat (limited to 'src/face.hh')
| -rw-r--r-- | src/face.hh | 8 |
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) { |
