Core: Convert Pair/KeyValue to constexpr

This commit is contained in:
Thaddeus Crews 2024-08-31 10:22:57 -05:00
parent 5e27318b6c
commit 5538850d87
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
8 changed files with 51 additions and 65 deletions

View file

@ -89,7 +89,7 @@ class AStar3D : public RefCounted {
unsigned char direction = NONE;
static uint32_t hash(const Segment &p_seg) {
return PairHash<int64_t, int64_t>().hash(p_seg.key);
return HashMapHasherDefault::hash(p_seg.key);
}
bool operator==(const Segment &p_s) const { return key == p_s.key; }