mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 07:04:37 +02:00
parent
7879c09789
commit
b5d4d9aba3
@ -38,10 +38,8 @@ String::String(Value&& other)
|
|||||||
|
|
||||||
String& String::operator=(Value&& other)
|
String& String::operator=(Value&& other)
|
||||||
{
|
{
|
||||||
const String *p = other.GetPtr<String>();
|
if (other.IsString())
|
||||||
|
m_Data = std::move(other.Get<String>());
|
||||||
if (p)
|
|
||||||
m_Data = std::move(p->m_Data);
|
|
||||||
else
|
else
|
||||||
m_Data = other;
|
m_Data = other;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user