1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:47:45 +00:00

LibWeb: Define operator< for AvailableSize

This commit is contained in:
Aliaksandr Kalenik 2023-08-12 18:21:17 +02:00 committed by Andreas Kling
parent 3f63be949a
commit d34007782d

View file

@ -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);