Merge remote-tracking branch 'origin/master' into 1.7
This commit is contained in:
@@ -498,8 +498,13 @@ Variant::Variant(Variant&& other) noexcept
|
||||
other.AsDictionary = nullptr;
|
||||
break;
|
||||
case VariantType::ManagedObject:
|
||||
#if USE_NETCORE
|
||||
AsUint64 = other.AsUint64;
|
||||
other.AsUint64 = 0;
|
||||
#elif USE_MONO
|
||||
AsUint = other.AsUint;
|
||||
other.AsUint = 0;
|
||||
#endif
|
||||
break;
|
||||
case VariantType::Null:
|
||||
case VariantType::Void:
|
||||
@@ -1022,8 +1027,13 @@ Variant& Variant::operator=(Variant&& other)
|
||||
other.AsDictionary = nullptr;
|
||||
break;
|
||||
case VariantType::ManagedObject:
|
||||
#if USE_NETCORE
|
||||
AsUint64 = other.AsUint64;
|
||||
other.AsUint64 = 0;
|
||||
#elif USE_MONO
|
||||
AsUint = other.AsUint;
|
||||
other.AsUint = 0;
|
||||
#endif
|
||||
break;
|
||||
case VariantType::Null:
|
||||
case VariantType::Void:
|
||||
@@ -2420,7 +2430,11 @@ void Variant::SetType(const VariantType& type)
|
||||
AsDictionary = New<Dictionary<Variant, Variant>>();
|
||||
break;
|
||||
case VariantType::ManagedObject:
|
||||
#if USE_NETCORE
|
||||
AsUint64 = 0;
|
||||
#elif USE_MONO
|
||||
AsUint = 0;
|
||||
#endif
|
||||
break;
|
||||
case VariantType::Structure:
|
||||
AllocStructure();
|
||||
@@ -2533,7 +2547,11 @@ void Variant::SetType(VariantType&& type)
|
||||
AsDictionary = New<Dictionary<Variant, Variant>>();
|
||||
break;
|
||||
case VariantType::ManagedObject:
|
||||
#if USE_NETCORE
|
||||
AsUint64 = 0;
|
||||
#elif USE_MONO
|
||||
AsUint = 0;
|
||||
#endif
|
||||
break;
|
||||
case VariantType::Structure:
|
||||
AllocStructure();
|
||||
@@ -2672,7 +2690,11 @@ void Variant::SetManagedObject(MObject* object)
|
||||
{
|
||||
if (Type.Type != VariantType::ManagedObject || Type.TypeName)
|
||||
SetType(VariantType(VariantType::ManagedObject));
|
||||
#if USE_NETCORE
|
||||
AsUint64 = 0;
|
||||
#elif USE_MONO
|
||||
AsUint = 0;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user