Fix incorrect assignment in String::operator=

refs #12619
This commit is contained in:
Gunnar Beutner 2016-09-02 08:14:15 +02:00
parent 1f9d54b6a2
commit b92a139a4c
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ String& String::operator=(Value&& other)
if (other.IsString())
m_Data = std::move(other.Get<String>());
else
m_Data = other;
*this = static_cast<String>(other);
return *this;
}