From d34007782defe46af5cc983ca6a7b69856f2fa7f Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Sat, 12 Aug 2023 18:21:17 +0200 Subject: [PATCH] LibWeb: Define `operator<` for AvailableSize --- Userland/Libraries/LibWeb/Layout/AvailableSpace.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibWeb/Layout/AvailableSpace.h b/Userland/Libraries/LibWeb/Layout/AvailableSpace.h index 9e65b0ef44..98fd17a65c 100644 --- a/Userland/Libraries/LibWeb/Layout/AvailableSpace.h +++ b/Userland/Libraries/LibWeb/Layout/AvailableSpace.h @@ -48,6 +48,7 @@ public: DeprecatedString to_deprecated_string() const; bool operator==(AvailableSize const& other) const = default; + bool operator<(AvailableSize const& other) const { return m_value < other.m_value; } private: AvailableSize(Type type, CSSPixels);