Mercurial > jwe > octave
diff libinterp/octave-value/ov-base.h @ 26658:cca0548f7b86
refactor calling object destructor
* ov.h (octave_value::call_object_destructor): New function.
* ov-base.h (octave_base_value::call_object_destructor):
New virtual function.
* ov-oncleanup.h, ov-oncleanup.cc
(octave_oncleanup::call_object_destructor): New function.
(octave_oncleanup::~octave_oncleanup): Use it.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 26 Jan 2019 15:03:57 +0000 |
parents | cd73f8e9235f |
children | 9cd4b045fe3d |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-base.h Sat Jan 26 14:56:14 2019 +0000 +++ b/libinterp/octave-value/ov-base.h Sat Jan 26 15:03:57 2019 +0000 @@ -719,6 +719,8 @@ virtual bool islocked (void) const { return false; } + virtual void call_object_destructor (void) { } + virtual octave_value dump (void) const; // Standard mappers. Register new ones here.