mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Make more types (Callable, Signal) conversion to String explicit.
This commit is contained in:
parent
ca1e4785b2
commit
d2f9d31270
5 changed files with 8 additions and 6 deletions
|
|
@ -55,6 +55,7 @@
|
|||
#include "core/templates/pair.h"
|
||||
#include "core/templates/rid.h"
|
||||
#include "core/typedefs.h"
|
||||
#include "core/variant/callable.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <intrin.h> // Needed for `__umulh` below.
|
||||
|
|
@ -342,6 +343,7 @@ struct HashMapHasherDefault {
|
|||
static _FORCE_INLINE_ uint32_t hash(const StringName &p_string_name) { return p_string_name.hash(); }
|
||||
static _FORCE_INLINE_ uint32_t hash(const NodePath &p_path) { return p_path.hash(); }
|
||||
static _FORCE_INLINE_ uint32_t hash(const ObjectID &p_id) { return hash_one_uint64(p_id); }
|
||||
static _FORCE_INLINE_ uint32_t hash(const Callable &p_callable) { return p_callable.hash(); }
|
||||
|
||||
static _FORCE_INLINE_ uint32_t hash(const uint64_t p_int) { return hash_one_uint64(p_int); }
|
||||
static _FORCE_INLINE_ uint32_t hash(const int64_t p_int) { return hash_one_uint64(uint64_t(p_int)); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue