mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Cleaned up some StrongRef-related code.
This commit is contained in:
@@ -111,6 +111,14 @@ Variant::Variant(const Variant &v)
|
||||
data.table->retain();
|
||||
}
|
||||
|
||||
Variant::Variant(Variant &&v)
|
||||
: type(std::move(v.type))
|
||||
, udatatype(std::move(v.udatatype))
|
||||
, data(std::move(v.data))
|
||||
{
|
||||
v.type = NIL;
|
||||
}
|
||||
|
||||
Variant::~Variant()
|
||||
{
|
||||
switch (type)
|
||||
|
||||
Reference in New Issue
Block a user