Implement an rvalue constructor for the String and Value classes

fixes #12555
This commit is contained in:
Gunnar Beutner 2016-08-26 08:58:49 +02:00
parent 49a130242c
commit 4f46e59af3
2 changed files with 8 additions and 0 deletions

View File

@ -77,6 +77,10 @@ public:
: m_Data(other.m_Data)
{ }
inline String(String&& other)
: m_Data(other)
{ }
inline ~String(void)
{ }

View File

@ -99,6 +99,10 @@ public:
: m_Value(other.m_Value)
{ }
inline Value(Value&& other)
: m_Value(other.m_Value)
{ }
inline Value(Object *value)
{
if (!value)