ソースを参照

LibWeb: Define `operator<` for AvailableSize

Aliaksandr Kalenik 2 年 前
コミット
d34007782d
1 ファイル変更1 行追加0 行削除
  1. 1 0
      Userland/Libraries/LibWeb/Layout/AvailableSpace.h

+ 1 - 0
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);