mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Core: Convert Pair/KeyValue to constexpr
This commit is contained in:
parent
5e27318b6c
commit
5538850d87
8 changed files with 51 additions and 65 deletions
|
|
@ -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; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue