Browse Source

LibWeb: Use default comparator for PixelUnits

Hendiadyoin1 1 year ago
parent
commit
95d00553c9
1 changed files with 1 additions and 4 deletions
  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();
     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++()
 CSSPixels& CSSPixels::operator++()
 {
 {