mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +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;
|
||||
}
|
||||
|
||||
Object::Ptr Function::Clone(void) const
|
||||
{
|
||||
return const_cast<Function *>(this);
|
||||
}
|
||||
|
@ -49,6 +49,8 @@ public:
|
||||
|
||||
static Object::Ptr GetPrototype(void);
|
||||
|
||||
virtual Object::Ptr Clone(void) const override;
|
||||
|
||||
private:
|
||||
Callback m_Callback;
|
||||
bool m_SideEffectFree;
|
||||
|
Loading…
x
Reference in New Issue
Block a user