Switch a TableVal::CallChangeFunc param to IntrusivePtr

This commit is contained in:
Jon Siwek 2020-05-20 23:17:25 -07:00
parent 9798c4b763
commit adb9d2881c
2 changed files with 11 additions and 8 deletions

View file

@ -1017,7 +1017,8 @@ protected:
enum OnChangeType { ELEMENT_NEW, ELEMENT_CHANGED, ELEMENT_REMOVED, ELEMENT_EXPIRED };
// Calls &change_func. Does not take ownership of values. (Refs if needed).
void CallChangeFunc(const Val* index, Val* old_value, OnChangeType tpe);
void CallChangeFunc(const Val* index, const IntrusivePtr<Val>& old_value,
OnChangeType tpe);
IntrusivePtr<Val> DoClone(CloneState* state) override;