Mercurial > octave
diff libinterp/octave-value/ov-fcn.h @ 24361:8bcfddad15ec
use shared_ptr to manage symbol_scope objects
* symscope.h, symscope.cc (symbol_scope_rep): New class, renamed and
adapted from symbol_scope.
(symbol_scope): New class to manage symbol_scope_rep with shared_ptr.
Change all uses of pointers ot symbol_scope objects to be symbol_scope
objects or, in a few cases, pointers to symbol_scope_rep objects
instead.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 27 Nov 2017 01:12:05 -0500 |
parents | bc3819b7cca1 |
children | 3fc24b792a24 |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-fcn.h Tue Dec 05 11:35:11 2017 -0800 +++ b/libinterp/octave-value/ov-fcn.h Mon Nov 27 01:12:05 2017 -0500 @@ -80,12 +80,12 @@ virtual std::string parent_fcn_name (void) const { return ""; } - virtual octave::symbol_scope * parent_fcn_scope (void) const - { return nullptr; } + virtual octave::symbol_scope parent_fcn_scope (void) const + { return octave::symbol_scope (); } virtual void mark_fcn_file_up_to_date (const octave::sys::time&) { } - virtual octave::symbol_scope * scope (void) { return nullptr; } + virtual octave::symbol_scope scope (void) { return octave::symbol_scope (); } virtual octave::sys::time time_parsed (void) const { return octave::sys::time (static_cast<time_t> (0)); }