diff --git a/Userland/Libraries/LibGfx/Point.h b/Userland/Libraries/LibGfx/Point.h index fcb5d5dbb8..588bf0716a 100644 --- a/Userland/Libraries/LibGfx/Point.h +++ b/Userland/Libraries/LibGfx/Point.h @@ -267,3 +267,12 @@ bool encode(Encoder&, Gfx::IntPoint const&); bool decode(Decoder&, Gfx::IntPoint&); } + +template +struct AK::Traits> : public AK::GenericTraits> { + static constexpr bool is_trivial() { return false; } + static unsigned hash(Gfx::Point const& point) + { + return pair_int_hash(AK::Traits::hash(point.x()), AK::Traits::hash(point.y())); + } +};