mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +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)
|
||||
{ }
|
||||
|
||||
inline String(String&& other)
|
||||
: m_Data(other)
|
||||
{ }
|
||||
|
||||
inline ~String(void)
|
||||
{ }
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user