From 7639eccd53327e93b2055433cdb2e3a7a49e463e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 27 Mar 2023 14:06:11 +0200 Subject: [PATCH] LibWeb: Add default equality operators to Available{Space,Size} I find myself adding these over and over again while testing. Let's just have them always there. --- Userland/Libraries/LibWeb/Layout/AvailableSpace.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Userland/Libraries/LibWeb/Layout/AvailableSpace.h b/Userland/Libraries/LibWeb/Layout/AvailableSpace.h index d4984a6146..9e65b0ef44 100644 --- a/Userland/Libraries/LibWeb/Layout/AvailableSpace.h +++ b/Userland/Libraries/LibWeb/Layout/AvailableSpace.h @@ -47,6 +47,8 @@ public: DeprecatedString to_deprecated_string() const; + bool operator==(AvailableSize const& other) const = default; + private: AvailableSize(Type type, CSSPixels); @@ -62,6 +64,8 @@ public: { } + bool operator==(AvailableSpace const& other) const = default; + AvailableSize width; AvailableSize height;