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