mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 07:04:37 +02:00
Fix that custom attribute with function value cannot be cloned
fixes #10583
This commit is contained in:
parent
284a10150b
commit
545607be9f
@ -39,3 +39,7 @@ bool Function::IsSideEffectFree(void) const
|
|||||||
return m_SideEffectFree;
|
return m_SideEffectFree;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Object::Ptr Function::Clone(void) const
|
||||||
|
{
|
||||||
|
return const_cast<Function *>(this);
|
||||||
|
}
|
||||||
|
@ -49,6 +49,8 @@ public:
|
|||||||
|
|
||||||
static Object::Ptr GetPrototype(void);
|
static Object::Ptr GetPrototype(void);
|
||||||
|
|
||||||
|
virtual Object::Ptr Clone(void) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Callback m_Callback;
|
Callback m_Callback;
|
||||||
bool m_SideEffectFree;
|
bool m_SideEffectFree;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user