mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Make IPAddress to String conversion explicit.
This commit is contained in:
parent
51b0379e55
commit
1498eb327f
5 changed files with 6 additions and 6 deletions
|
|
@ -821,7 +821,7 @@ struct VariantInternalAccessor<const T *> {
|
|||
template <>
|
||||
struct VariantInternalAccessor<IPAddress> {
|
||||
static _FORCE_INLINE_ IPAddress get(const Variant *v) { return IPAddress(*VariantInternal::get_string(v)); }
|
||||
static _FORCE_INLINE_ void set(Variant *v, IPAddress p_value) { *VariantInternal::get_string(v) = p_value; }
|
||||
static _FORCE_INLINE_ void set(Variant *v, IPAddress p_value) { *VariantInternal::get_string(v) = String(p_value); }
|
||||
};
|
||||
|
||||
template <>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue