From 95d00553c97911a438c0e7113cc0cce65bd5385c Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Fri, 4 Aug 2023 16:55:17 +0200 Subject: [PATCH] LibWeb: Use default comparator for PixelUnits --- Userland/Libraries/LibWeb/PixelUnits.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Userland/Libraries/LibWeb/PixelUnits.cpp b/Userland/Libraries/LibWeb/PixelUnits.cpp index b373d9935e..fc13a0c39a 100644 --- a/Userland/Libraries/LibWeb/PixelUnits.cpp +++ b/Userland/Libraries/LibWeb/PixelUnits.cpp @@ -56,10 +56,7 @@ bool CSSPixels::might_be_saturated() const return raw_value() == NumericLimits::max() || raw_value() == NumericLimits::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++() {