浏览代码

LibWeb: Use default comparator for PixelUnits

Hendiadyoin1 1 年之前
父节点
当前提交
95d00553c9
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      Userland/Libraries/LibWeb/PixelUnits.cpp

+ 1 - 4
Userland/Libraries/LibWeb/PixelUnits.cpp

@@ -56,10 +56,7 @@ bool CSSPixels::might_be_saturated() const
     return raw_value() == NumericLimits<i32>::max() || raw_value() == NumericLimits<i32>::min();
 }
 
-bool CSSPixels::operator==(CSSPixels const& other) const
-{
-    return raw_value() == other.raw_value();
-}
+bool CSSPixels::operator==(CSSPixels const& other) const = default;
 
 CSSPixels& CSSPixels::operator++()
 {