diff --git a/Userland/Libraries/LibWeb/PixelUnits.h b/Userland/Libraries/LibWeb/PixelUnits.h index 0e99009c76..ac40f9a947 100644 --- a/Userland/Libraries/LibWeb/PixelUnits.h +++ b/Userland/Libraries/LibWeb/PixelUnits.h @@ -127,7 +127,7 @@ template<> struct Traits : public GenericTraits { static unsigned hash(Web::CSSPixels const& key) { - return double_hash(key.value()); + return Traits::hash(key.value()); } static bool equals(Web::CSSPixels const& a, Web::CSSPixels const& b) @@ -140,7 +140,7 @@ template<> struct Traits : public GenericTraits { static unsigned hash(Web::DevicePixels const& key) { - return double_hash(key.value()); + return Traits::hash(key.value()); } static bool equals(Web::DevicePixels const& a, Web::DevicePixels const& b) @@ -150,18 +150,18 @@ struct Traits : public GenericTraits { }; template<> -struct Formatter : Formatter { +struct Formatter : Formatter { ErrorOr format(FormatBuilder& builder, Web::CSSPixels const& value) { - return Formatter::format(builder, value.value()); + return Formatter::format(builder, value.value()); } }; template<> -struct Formatter : Formatter { +struct Formatter : Formatter { ErrorOr format(FormatBuilder& builder, Web::DevicePixels const& value) { - return Formatter::format(builder, value.value()); + return Formatter::format(builder, value.value()); } };