mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
Implement an rvalue constructor for the String and Value classes
fixes #12555
This commit is contained in:
parent
49a130242c
commit
4f46e59af3
@ -77,6 +77,10 @@ public:
|
|||||||
: m_Data(other.m_Data)
|
: m_Data(other.m_Data)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
inline String(String&& other)
|
||||||
|
: m_Data(other)
|
||||||
|
{ }
|
||||||
|
|
||||||
inline ~String(void)
|
inline ~String(void)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
@ -99,6 +99,10 @@ public:
|
|||||||
: m_Value(other.m_Value)
|
: m_Value(other.m_Value)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
inline Value(Value&& other)
|
||||||
|
: m_Value(other.m_Value)
|
||||||
|
{ }
|
||||||
|
|
||||||
inline Value(Object *value)
|
inline Value(Object *value)
|
||||||
{
|
{
|
||||||
if (!value)
|
if (!value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user